Private Sub CmdCancel_Click()
TxtInput.Text = ""
TxtInput.TablIndex = 0
End Sub
Private Sub CmdOk_Click()
If TxtInput.Text = "123456" Then MsgBox ("密码正确!") Else MsgBox ("密码错误,请重新输入。")
TxtInput.Text = ""
TxtInput.SetFocus
End If
Private Sub Form_Load()
TxtInput.Text = ""
TxtInput.TablIndex = 0
End Sub 作者:
Nothing 时间: 2008-7-9 09:58