📄 frmpassword.frm
字号:
VERSION 5.00
Begin VB.Form frmPassWord
Caption = "确认密码"
ClientHeight = 2145
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 2145
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3360
TabIndex = 3
Top = 1080
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确认"
Height = 375
Left = 3360
TabIndex = 2
Top = 360
Width = 975
End
Begin VB.TextBox txtPassWord
Height = 375
IMEMode = 3 'DISABLE
Left = 600
PasswordChar = "*"
TabIndex = 1
Top = 840
Width = 2175
End
Begin VB.Label qi
Caption = "请输入密码:"
Height = 255
Left = 600
TabIndex = 0
Top = 480
Width = 1695
End
End
Attribute VB_Name = "frmPassWord"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'OK
Private Sub Command1_Click()
g_UserPassWord = Trim(txtPassWord.Text)
If g_UserPassWord = g_SpecPassWord Or _
g_UserPassWord = g_MYPASSWORD Then
bPassWordok = True
Unload Me
Else
MsgBox "密码输入错误,请重新输入"
txtPassWord.Text = ""
txtPassWord.SetFocus
End If
End Sub
'Cancel
Private Sub Command2_Click()
bPassWordok = False
Unload Me
End Sub
Private Sub Form_Load()
bPassWordok = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -