📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
BorderStyle = 0 'None
Caption = "Form2"
ClientHeight = 2940
ClientLeft = 0
ClientTop = 0
ClientWidth = 3735
ControlBox = 0 'False
LinkTopic = "Form2"
Picture = "Form2.frx":0000
ScaleHeight = 2940
ScaleWidth = 3735
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin MouseLock.xpcmdbutton xpcmdbutton2
Height = 375
Left = 2040
TabIndex = 7
Top = 2280
Width = 1335
_extentx = 2355
_extenty = 661
caption = "取消"
font = "Form2.frx":0FCB
End
Begin MouseLock.xpcmdbutton xpcmdbutton1
Default = -1 'True
Height = 375
Left = 240
TabIndex = 6
Top = 2280
Width = 1335
_extentx = 2355
_extenty = 661
caption = "确认"
font = "Form2.frx":0FEF
End
Begin VB.TextBox Text3
Height = 270
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 5
Top = 1680
Width = 2055
End
Begin VB.TextBox Text2
Height = 270
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 4
Top = 1200
Width = 2055
End
Begin VB.TextBox Text1
Height = 270
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 1
Top = 720
Width = 2055
End
Begin VB.Image Image1
Height = 255
Left = 3240
Picture = "Form2.frx":1013
Top = 120
Width = 510
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "确认密码:"
Height = 180
Index = 2
Left = 240
TabIndex = 3
Top = 1680
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "新密码:"
Height = 180
Index = 1
Left = 240
TabIndex = 2
Top = 1200
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "旧密码:"
BeginProperty Font
Name = "新宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 180
Index = 0
Left = 240
TabIndex = 0
Top = 720
Width = 720
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2 '窗体居中显示
End Sub
Private Sub xpcmdbutton1_Click()
Dim old As String
Dim new1 As String
old = DigestStrToHexStr(Text1)
Text1 = ReadIni1(1)
new1 = Text1
Text1 = ""
If new1 = "" Then new1 = DigestStrToHexStr(new1)
If new1 = old Then '如果修改密码和旧密码相同则
If Text2.Text = Text3.Text Then '如果新密码和确认密码相同则
Pass = DigestStrToHexStr(Text3)
WriteIni1 (1) '保存新密码
Call MsgBox("密码成功修改,请牢记", vbOKOnly, "温馨提示")
Else
Call MsgBox("新密码和确认密码不符,请重新输入", vbOKOnly, "温馨提示")
Exit Sub
End If
End If
Unload Me
End Sub
Private Sub xpcmdbutton2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -