Guest User

Untitled

a guest
Jan 17th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. private void textBox_LostFocus(object sender, EventArgs e)
  2. {
  3. foreach (TextBox item in this.textbox) //got 3 text box,
  4. {
  5. if (item.Focused == true)
  6. {
  7. item.HideSelection = false;
  8. item.SelectAll();
  9. }
  10. else
  11. item.HideSelection = true;
  12. }
  13.  
  14. private void textBox_LostFocus(object sender, EventArgs e)
  15. {
  16. foreach (TextBox item in this.textbox) //got 3 text box,
  17. {
  18. if (item.Focused == true)
  19. {
  20. item.HideSelection = true; //difference here
  21. item.HideSelection = false;
  22. item.SelectAll();
  23. }
  24. else
  25. item.HideSelection = true;
  26. }
Add Comment
Please, Sign In to add comment