how can i count the number of failed logins?
where do i put the code..
thanks...
Private Sub btnSOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSOk.Click
If lblPassword.Text = tbPassWord.Text Then
m.logged = True
m.Show()
Else
Dim ctr As Integer
m.logged = False
MsgBox("Invalid Username or Password! Try Again?", MsgBoxStyle.YesNo)
If MsgBoxResult.Yes Then
tbPassWord.Text = ""
ctr = ctr + 1
lblctr.Text = ctr
Me.Show()
Else
m.Close()
End If
End If
where do i put the code..
thanks...
Private Sub btnSOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSOk.Click
If lblPassword.Text = tbPassWord.Text Then
m.logged = True
m.Show()
Else
Dim ctr As Integer
m.logged = False
MsgBox("Invalid Username or Password! Try Again?", MsgBoxStyle.YesNo)
If MsgBoxResult.Yes Then
tbPassWord.Text = ""
ctr = ctr + 1
lblctr.Text = ctr
Me.Show()
Else
m.Close()
End If
End If