📄 frmmodifypass.frm
字号:
VERSION 5.00
Begin VB.Form frmModifyPass
BorderStyle = 3 'Fixed Dialog
Caption = "密码修改"
ClientHeight = 2280
ClientLeft = 6990
ClientTop = 4905
ClientWidth = 3105
Icon = "frmModifyPass.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2280
ScaleWidth = 3105
ShowInTaskbar = 0 'False
Begin VB.TextBox txtNewPass
Height = 375
IMEMode = 3 'DISABLE
Index = 1
Left = 1440
PasswordChar = "*"
TabIndex = 3
Top = 1200
Width = 1455
End
Begin VB.TextBox txtNewPass
Height = 375
IMEMode = 3 'DISABLE
Index = 0
Left = 1440
PasswordChar = "*"
TabIndex = 1
Top = 720
Width = 1455
End
Begin VB.TextBox txtOldPass
Height = 375
IMEMode = 3 'DISABLE
Left = 1440
PasswordChar = "*"
TabIndex = 0
Top = 240
Width = 1455
End
Begin VB.CommandButton CancelButton
Caption = "关闭"
Height = 375
Left = 1680
TabIndex = 4
Top = 1800
Width = 1215
End
Begin VB.CommandButton OKButton
Caption = "确定"
Default = -1 'True
Height = 375
Left = 120
TabIndex = 2
Top = 1800
Width = 1215
End
Begin VB.Label Label1
Caption = "确认 密 码:"
Height = 255
Index = 2
Left = 120
TabIndex = 7
Top = 1320
Width = 1095
End
Begin VB.Label Label1
Caption = "新 密 码:"
Height = 255
Index = 1
Left = 120
TabIndex = 6
Top = 840
Width = 1095
End
Begin VB.Label Label1
Caption = "旧 密 码:"
Height = 255
Index = 0
Left = 120
TabIndex = 5
Top = 360
Width = 1095
End
End
Attribute VB_Name = "frmModifyPass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Activate()
SetDlgBackColor Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
Call CancelButton_Click
Cancel = 1
End Sub
Private Sub CancelButton_Click()
Me.Hide
End Sub
Private Sub OKButton_Click()
If StrConv(txtOldPass, 1) = StrConv(mPassword, 1) Then
If StrConv(txtNewPass(0), 1) <> StrConv(txtNewPass(1), 1) Then
MsgBox "新密码与确认密码不一致!", vbOKOnly + vbExclamation, "提示"
Else
mPassword = txtNewPass(0)
WritePrivateProfileString "Password", "pass", mPassword, iniFile
MsgBox "密码修改成功!", vbOKOnly + vbInformation, "提示"
End If
Else
MsgBox "旧密码错误!", vbOKOnly + vbExclamation, "提示"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -