Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. private void txtBox_Leave(object sender, EventArgs e)
  2. {
  3. TextBox textBox = sender as TextBox;
  4. textBox.Visible = false;
  5.  
  6. #region TextBox 1
  7. if (textBox.Equals(txtBox1))
  8. {
  9. //Text Box 1 validation
  10. //Populating Suggestions for TextBox2
  11. //Passing focus on Textbox 2
  12. }
  13. #endregion
  14. #region TextBox 2
  15. else if (textBox.Equals(txtBox2))
  16. {
  17. //Text Box 2 validation
  18. }
  19. #endregion
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement