Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public void Send_Click(object sender, EventArgs e)
  2. {
  3. string ID;
  4. string Error;
  5. Error = "Please enter a valid ID, then submit.";
  6. ID = Identification.Text;
  7. if (ID.Length != 5)
  8. {
  9. Identification.Text = " ";
  10. Identification.Focus();
  11. MessageBox.Show(Error);
  12. }
  13. else
  14. {
  15. Identification.Text = " ";
  16. Identification.Focus();
  17. DetailForm Detail = new DetailForm();
  18. Detail.Show();
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement