level 1
你心似海🍭
楼主
Publica As Double
Publicb As Double
PrivateSub Command1_Click()
Statici As Integer
Text1(0).SetFocus
If Text1(0).Text = "206150919" Then
a = 1
Else
i = i + 1
MsgBox "用户名错误!", 5+ vbExclamation, "输入用户名" '5-重试和取消
If i = 3 Then
MsgBox "对不起,用户名错误三次,您无法登录该系统!", 48, "警告!"
End
Else
Text1(0) = ""
Text1(1) = ""
Text1(0).SetFocus
End If
End If
If Text1(1).Text = "gh123456" Then
b = 1
Else
i = i + 1
MsgBox "密码错误", 5 + vbExclamation, "输入密码"
Ifi = 4 Then
MsgBox "对不起,密码错误三次,您无法登录该系统!", 48, "警告!"
End
Else
Text1(1).Text = ""
Text1(1).SetFocus
End If
End If
2020年04月27日 09点04分
1
Publicb As Double
PrivateSub Command1_Click()
Statici As Integer
Text1(0).SetFocus
If Text1(0).Text = "206150919" Then
a = 1
Else
i = i + 1
MsgBox "用户名错误!", 5+ vbExclamation, "输入用户名" '5-重试和取消
If i = 3 Then
MsgBox "对不起,用户名错误三次,您无法登录该系统!", 48, "警告!"
End
Else
Text1(0) = ""
Text1(1) = ""
Text1(0).SetFocus
End If
End If
If Text1(1).Text = "gh123456" Then
b = 1
Else
i = i + 1
MsgBox "密码错误", 5 + vbExclamation, "输入密码"
Ifi = 4 Then
MsgBox "对不起,密码错误三次,您无法登录该系统!", 48, "警告!"
End
Else
Text1(1).Text = ""
Text1(1).SetFocus
End If
End If

