vb设计一个账号和密码的检验程序,假设用户名为"teacher"密码为"gong"
来源:百度知道 编辑:UC知道 时间:2024/06/17 13:08:06
创建 Combo1 、Text1、Command1
Private Sub Command1_Click()
If Combo1.Text = "teacher" And Text1.Text = "gong" Then
MsgBox ("恭喜,用户密码正确!")
Else
MsgBox ("对不起,用户或密码错误!")
End If
End Sub