📄 frmsetup.frm
字号:
VERSION 5.00
Begin VB.Form frmSetup
BorderStyle = 3 '蛮絬㏕﹚癸杠よ遏
Caption = "Password Setup"
ClientHeight = 2745
ClientLeft = 45
ClientTop = 330
ClientWidth = 3060
ControlBox = 0 'False
Icon = "frmSetup.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2745
ScaleWidth = 3060
ShowInTaskbar = 0 'False
StartUpPosition = 2 '棵辊いァ
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "&Cancel"
Height = 375
Left = 1560
TabIndex = 4
Top = 2160
Width = 1335
End
Begin VB.CommandButton cmdOK
Caption = "&OK"
Default = -1 'True
Height = 375
Left = 120
TabIndex = 3
Top = 2160
Width = 1335
End
Begin VB.TextBox txtReEnt
Height = 285
IMEMode = 3 '既ゎ
Left = 120
PasswordChar = "*"
TabIndex = 2
Top = 1800
Width = 2775
End
Begin VB.TextBox txtPass
Height = 285
IMEMode = 3 '既ゎ
Left = 120
PasswordChar = "*"
TabIndex = 1
Top = 1080
Width = 2775
End
Begin VB.TextBox txtOldPass
Height = 285
IMEMode = 3 '既ゎ
Left = 120
PasswordChar = "*"
TabIndex = 0
Top = 360
Width = 2775
End
Begin VB.Label Label3
Caption = "Re-Enter Password"
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 7
Top = 1560
Width = 2775
End
Begin VB.Label Label2
Caption = "Enter New Password"
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 6
Top = 840
Width = 2775
End
Begin VB.Label Label1
Caption = "Enter Old Password"
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 5
Top = 120
Width = 2775
End
End
Attribute VB_Name = "frmSetup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Password As String
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
On Error GoTo 1
If txtOldPass.text = Password And CheckDiff(txtPass, txtReEnt, False) = True Then
SavePassword App.EXEName, "option", "password", txtPass.text
MsgBox "Set Password Success!", vbInformation, App.ProductName
Unload Me
Exit Sub
ElseIf txtOldPass.text <> Password Then
MsgBox "Old Password dismatch! Please enter it again.", vbCritical, App.ProductName
Exit Sub
End If
1 MsgBox "Password re-entered incorrect! Please type again.", vbCritical, App.ProductName
End Sub
Private Sub Form_Load()
Password = LoadPassword(App.EXEName, "option", "password")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -