📄 frmsetpassword.frm
字号:
VERSION 5.00
Begin VB.Form frmSetPassWord
BorderStyle = 3 'Fixed Dialog
Caption = "设置新密码"
ClientHeight = 1776
ClientLeft = 36
ClientTop = 324
ClientWidth = 4200
Icon = "frmSetPassWord.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1776
ScaleWidth = 4200
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.Frame Frame2
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1560
Left = 120
TabIndex = 4
Top = 72
Width = 2676
Begin VB.TextBox txtSpecPass1
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 324
IMEMode = 3 'DISABLE
Left = 660
PasswordChar = "*"
TabIndex = 0
Top = 336
Width = 1812
End
Begin VB.TextBox txtSpecPass2
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 324
IMEMode = 3 'DISABLE
Left = 660
PasswordChar = "*"
TabIndex = 1
Top = 900
Width = 1812
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "确认:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 180
Left = 168
TabIndex = 6
Top = 912
Width = 540
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "密码:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 180
Left = 168
TabIndex = 5
Top = 348
Width = 540
End
End
Begin VB.CommandButton cmdOK
Caption = "确认"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 2988
TabIndex = 2
Top = 360
Width = 1068
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 2988
TabIndex = 3
Top = 972
Width = 1068
End
End
Attribute VB_Name = "frmSetPassWord"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
txtSpecPass1.Text = Trim(txtSpecPass1.Text)
txtSpecPass2.Text = Trim(txtSpecPass2.Text)
If txtSpecPass1.Text = "" Then
MsgBox "请输入密码"
txtSpecPass1.SetFocus
Exit Sub
ElseIf txtSpecPass2.Text <> txtSpecPass1.Text Then
MsgBox "密码确认不正确"
txtSpecPass1.Text = ""
txtSpecPass2.Text = ""
txtSpecPass1.SetFocus
Exit Sub
End If
SaveSetting "SEP", "PassWord", "SpecPassWord", txtSpecPass1.Text
g_SpecPassWord = txtSpecPass1.Text
Unload Me
End Sub
Private Sub Form_Load()
txtSpecPass1.Text = GetSetting("SEP", "PassWord", "g_SpecPassWord")
txtSpecPass2.Text = GetSetting("SEP", "PassWord", "g_SpecPassWord")
End Sub
Private Sub txtSpecPass1_GotFocus()
txtSpecPass1.SelStart = 0
txtSpecPass1.SelLength = Len(txtSpecPass1.Text)
End Sub
Private Sub txtSpecPass2_GotFocus()
txtSpecPass2.SelStart = 0
txtSpecPass2.SelLength = Len(txtSpecPass2.Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -