Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. pesan = MsgBox(" Anda yakin mau keluar ??", vbQuestion + vbYesNo, "Question")
  2. If pesan = nvYes Then
  3. End
  4.  
  5. Else
  6. Forml.SetFocus
  7. End If
  8. User = username
  9. Password = pass
  10.  
  11. If User = "edwin" And Password = "123" Then
  12. MsgBox "Selamat Datang"
  13. Form2.Show
  14. Foerm1.Hide
  15.  
  16. Else
  17.  
  18. login = login + 1
  19. MsgBox "Anda salah memasukan pasword " & login & " kali "
  20. If login = 2 Then
  21.  
  22. MsgBox "Kesempatan Anda 1 kali lagi", vbExclamation
  23.  
  24. End If
  25.  
  26. If login = 3 Then
  27. MsgBox "Anda Salah memasukan Password 3 kali, maka program ini akan kami tutup"
  28. vbCritical
  29.  
  30. End
  31. End If
  32. End If
  33.  
  34. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement