VB题:登录窗口输入密码错误时,如何清空密码跟用户名
Option ExplicitPrivate Sub Command1_Click()
Dim intResult As Integer
intResult = MsgBox("你选择了退出登录,真的退出?", vbYesNo, "登录验证")
If intResult = vbYes Then End
End Sub
Private Sub Command2_Click()
If text1 = "123" Then
MsgBox text2 & "你好!"
Else
MsgBox text2 & ",请重新输入口令!"
End If
End Sub
---------------------------------------------------------------------------------------------------------------------------------------------
我想要实现当输入密码错误的时候,在重新输入的时候要清空text1跟text2里面的内容 该如何做?