I put it inside the loginButton.clicked
Dim a As Integer = 0
If userTextbox.Text = "username" And passTextbox.Text = "password" Then
MsgBox("Welcome!")
Else If userTextbox.Text <> "username" And passTextbox.Text = "password" Then
a += 1
MsgBox("Username wrong!")
Else If userTextbox.Text = "username" And passTextbox.Text <> "password" Then
a += 1
MsgBox("Password wrong!")
Else
a += 1
MsgBox("Username and Password are Incorrect.")
End If
If a = 3 Then
MsgBox("Your account is banned for 3 mins. please wait")
End If
This post has been edited by AdamSpeight2008: 28 January 2013 - 08:42 AM

New Topic/Question
Reply



MultiQuote





|