vbchoz.blogspot.com
Form Login
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
'Button Ok
If UCase(UsernameTextBox.Text) = "MU" And UCase(PasswordTextBox.Text) = "88" Then
FormProgressBarLogin.Show()
FormProgressBarLogin.Timer1.Enabled = True
FormProgressBarLogin.Show()
Me.Hide()
Exit Sub
Else
counter = counter + 1
If counter = 3 Then
MessageBox.Show("anda sudah 3 kali salah")
End
End If
MessageBox.Show("login salah" + Chr(13) + "anda mempunyai " & 3 - counter & " kali untuk mencoba" + Chr(13) + "login ulang", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Error)
Exit Sub
End If
Me.Close()
End Sub
Tidak ada komentar:
Posting Komentar