Private Sub Command1_Click() If Text1.Text = "123" Then '口令 MsgBox "口令确认!", 44, "提示" Image1.Picture = LoadPicture("图片路径") Else MsgBox "口令错误!", 64, "提示" Text1.Text = "" End If End Sub
Private Sub Command2_Click() End End Sub
Private Sub Command3_Click() Text1.SetFocus End Sub
Private Sub Form_Load() Text1.Text = "" Text1.PasswordChar = "*" Command1.Caption = "确定" Command2.Caption = "退出" Command3.Caption = "开始" End Sub