salam all
the user can tries 3 times in each time when the password is wrong the msgbox tells the user ur password is wrong
the 3 times the message said u r hackers.
could u plz help me with my code
Dim logincount As Integer
Dim counter As Integer
For counter = 1 To 3
logincount = logincount + 1
If logincount = 3 Then
MsgBox("no more tries")
Exit Sub
End If
If txtpassword.Text = "password" Then
MsgBox("right")
Else
MsgBox("incorrect")
End If
Next