📄 frmpassword.frm
字号:
VERSION 5.00
Begin VB.Form frmPassWord
BorderStyle = 3 'Fixed Dialog
Caption = "确认密码"
ClientHeight = 1485
ClientLeft = 45
ClientTop = 330
ClientWidth = 4575
Icon = "frmPassWord.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1485
ScaleWidth = 4575
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 348
Left = 3135
TabIndex = 3
Top = 795
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确认"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 348
Left = 3135
TabIndex = 2
Top = 225
Width = 1215
End
Begin VB.TextBox txtPassWord
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
IMEMode = 3 'DISABLE
Left = 255
PasswordChar = "*"
TabIndex = 1
Top = 612
Width = 2085
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请输入密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 252
TabIndex = 0
Top = 228
Width = 1440
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
frmServer.bPassWordOk = True
Unload Me
Else
MsgBox "密码输入错误,请重新输入"
txtPassWord.Text = ""
txtPassWord.SetFocus
End If
End Sub
'Cancel
Private Sub Command2_Click()
frmServer.bPassWordOk = False
Unload Me
End Sub
Private Sub Form_Load()
frmServer.bPassWordOk = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -