Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void infoGather_keydown(object sender,KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- if (username == null)
- {
- username = infoGather.Text;
- }
- else
- {
- password = infoGather.Text;
- if (username == "admin" && password == "admin")
- {
- MessageBox.Show("welcome");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement