Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

Password Attemp

$
0
0
Heya guys =)

Here is my Code

Password Code:
  1. Private Sub cmdLogin_Click()
  2. If txtPassword.Text = "training" Then
  3. EmployeeStartup.Show
  4. Unload Me
  5. Else
  6. If MsgBox("Do you want to try again ?", vbQuestion + vbYesNo, "Invalid Login") = vbNo Then
  7. End
  8. End If
  9. End If
  10. End Sub
  11. Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  12. Select Case KeyCode
  13. Case vbKeyEscape
  14. cmdExit = True
  15. End Select
  16. End Sub
  17. Private Sub cmdExit_Click()
  18. End
  19. End Sub

Issue: How to add a 3 Attemp password?

Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>