Option Explicit
Private Sub cmdExit_Click()
End
End Sub
Private Sub cmdCheck_Click()
Dim Answer As Integer
If txtPass.Text = txtPass.Tag And txtUser.Text = txtUser.Tag Then
MsgBox "OK", vbOKOnly + vbExclamation, "Accepted!"
Else
Answer = MsgBox("Wrong", vbRetryCancel + vbCritical, "Error!")
If Answer = vbRetry Then
txtPass.SelStart = 0
txtPass.SelLength = Len(txtPass.Text)
txt.SelStart = 0
txtUser.SelLength = Len(txtUser.Text)
Else
End
End If
End If
txtPass.SetFocus
txtUser.SetFocus
End Sub
txt.SelStart = 0 mine mistake..
txtUser.SelStart = 0

New Topic/Question
Reply



MultiQuote






|