Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void textBox_LostFocus(object sender, EventArgs e)
- {
- foreach (TextBox item in this.textbox) //got 3 text box,
- {
- if (item.Focused == true)
- {
- item.HideSelection = false;
- item.SelectAll();
- }
- else
- item.HideSelection = true;
- }
- private void textBox_LostFocus(object sender, EventArgs e)
- {
- foreach (TextBox item in this.textbox) //got 3 text box,
- {
- if (item.Focused == true)
- {
- item.HideSelection = true; //difference here
- item.HideSelection = false;
- item.SelectAll();
- }
- else
- item.HideSelection = true;
- }
Add Comment
Please, Sign In to add comment