📄 form5.frm
字号:
VERSION 5.00
Begin VB.Form Form5
Caption = "Form5"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form5"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 3000
TabIndex = 3
Top = 1680
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 3000
TabIndex = 2
Top = 480
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
IMEMode = 3 'DISABLE
Left = 1200
PasswordChar = "*"
TabIndex = 1
Top = 1680
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
IMEMode = 3 'DISABLE
Left = 1200
PasswordChar = "*"
TabIndex = 0
Top = 240
Width = 1215
End
Begin VB.Label Label2
Caption = "新密码:"
Height = 495
Left = 360
TabIndex = 5
Top = 1800
Width = 1215
End
Begin VB.Label Label1
Caption = "原密码:"
Height = 495
Left = 360
TabIndex = 4
Top = 360
Width = 1215
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = a(cur).password Then
a(cur).password = Text2.Text
Open App.Path & "\a.dat" For Random As #1
Put #1, cur, a(cur)
Close #1
MsgBox "密码修改成功!"
Unload Me
Else
MsgBox "原密码错误!请重新输入密码!"
Text1.Text = ""
Text2.Text = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -