Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. private static void infoGather_keydown(object sender,KeyEventArgs e)
  2. {
  3. if (e.KeyCode == Keys.Enter)
  4. {
  5. if (username == null)
  6. {
  7. username = infoGather.Text;
  8. }
  9. else
  10. {
  11. password = infoGather.Text;
  12. if (username == "admin" && password == "admin")
  13. {
  14. MessageBox.Show("welcome");
  15. }
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement