I am currently working on a password system for an application I have developed.
The username: Admin
The Password: Password
And after 3 tries the application should close.
I have this and it works for the password, how would I insert the username too?
If txt_Password.Text <> "password" Then
Select Case Var1
Case Is <= 2
MsgBox("The password is incorrect", vbExclamation, "Incorrect Password")
Var1 = Var1 + 1
MsgBox("You have entered the wrong password too many times, you are now locked out. Please contact your system administrator. The program will now terminate.", vbCritical, "Locked Out")
MsgBox("Password has been entered correctly.")
Any form of help would be really appreciated, thanks.