在一个程序中添加一个密码窗体(取名为“Frm_密码”),运行程序时,主窗体(取名“frm_主程序”)先隐蒧,直接显示密码窗体。Private Sub Form_Load()Me.HideFrm_密码.ShowEnd Sub下面是密码窗体的代码:只要有一个文本框就可以了。Private Sub Form_Load()Text1.Text = ""Text1.PasswordChar = "*"End SubPrivate Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)If KeyCode = 13 Then
If Text1.Text...
Private Sub Command1_Click()MsgBox ("欢迎进入!")End SubPrivate Sub Form_Load()Text1.Text = ""Text1.PasswordChar = "*"End SubPrivate Sub Text1_KeyDown(KeyCode As Integer, Shift...