Advertisement
Guest User

For Login read some to understand

a guest
Sep 16th, 2017
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2. string username = "SwitchBlade";
  3. string password = "Leavl 7";
  4.  
  5. On Top of public Form1() do
  6.  
  7.  
  8.  
  9. if(usertxt.Text == username)
  10. {
  11. if(passtxt.Text == password)
  12. {
  13. Form2 tampil = new Form2();
  14. tampil.Show();
  15. Visible = false;
  16. } else
  17. {
  18. MessageBox.Show("Username/Password Is Incorrect!");
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement