设计一个VB程序,要求输入口令“abcde”,如果输入正确,则打开另外一个窗口,否则提
答案:1 悬赏:0
解决时间 2021-12-15 13:57
- 提问者网友:优雅ぉ小姐
- 2021-12-14 23:55
设计一个VB程序,要求输入口令“abcde”,如果输入正确,则打开另外一个窗口,否则提
最佳答案
- 二级知识专家网友:一起来看看吧
- 2021-12-15 00:43
Private Sub Command1_Click()
If Text1.Text = "abcde" Then
Form2.Show
Else
Label1.Caption = "请重新输入"
Text1.Text = ""
Text1.SetFocus
End If
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text1.PasswordChar = "*"
Label1.Caption = "请输入口令"
End Sub
If Text1.Text = "abcde" Then
Form2.Show
Else
Label1.Caption = "请重新输入"
Text1.Text = ""
Text1.SetFocus
End If
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text1.PasswordChar = "*"
Label1.Caption = "请输入口令"
End Sub
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯