遇到麻烦了,大神来看看!~
最近闲来无事,编一个小程序,请看一下代码:Private Sub Command1_Click()
TxInput.Text = ""
TxInput.TabIndex = 0
End Sub
Private Sub CmdCancel_Click()
TxInput.Text = ""
TxInput.SetFocus
End Sub
Private Sub CmdOk_Click()
If TxInput.Text = "123456" Then MsgBox ("密码正确!") Else MsgBox ("密码错误,请重新输入。")
TxInput.Text = ""
TxInput.SetFocus
End Sub
Private Sub Form_Load()
TxInput.Text = ""
TxInput.TabIndex = 0
End Sub
一运行就会出现实时错误424,要求对象,请问大神怎么改,万分感谢!~