Home > Net >  How do you use the multiple textbox leave?
How do you use the multiple textbox leave?

Time:02-25

There are ten textbox, every inside have to enter a number, each textbox and leave, but after the program is running, click on the first of the textbox, after the input values, then to click on the second textbox, the mouse has been in the first place flashing textbox, won't be moved to the second textbox, lead to the second and the back of the multiple textbox cannot change, how to solve this case, the change program
Private void readdata1_Leave (object sender, EventArgs e)
{
Readdata1. Focus ();
}

Private void readdata2_Leave (object sender, EventArgs e)
{
Readdata2. Focus ();
}

Private void readdata3_Leave (object sender, EventArgs e)
{
Readdata3. Focus ();
}

CodePudding user response:

Wrong code logic, readdata1_Leave leave the event, the event was leaving after call readdata1. The Focus (); This method, obviously wrong

CodePudding user response:

Leave, after the mouse left to perform readdata1 get focus, you again some other can have what effect

CodePudding user response:

Upstairs said is very clear, or you tell me something about your purpose, to realize what function
  •  Tags:  
  • C#
  • Related