查看完整版本: 求教代码错误

秋秋 2008-7-9 09:25

求教代码错误

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


TxtInput.TabIndex = 0
不是
TxtInput.TablIndex = 0
你字母打多了一个
页: [1]
查看完整版本: 求教代码错误