📄 frmchangepwd.frm
字号:
VERSION 5.00
Begin VB.Form frmChangePwd
BorderStyle = 3 'Fixed Dialog
Caption = "密码修改"
ClientHeight = 2085
ClientLeft = 45
ClientTop = 330
ClientWidth = 3495
Icon = "frmChangePwd.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2085
ScaleWidth = 3495
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.Timer Timer1
Interval = 500
Left = 0
Top = 1680
End
Begin VB.CommandButton cmdCancel
Caption = "取消(&C)"
Height = 375
Left = 2520
TabIndex = 5
Top = 1680
Width = 855
End
Begin VB.Frame Frame1
Caption = "密码更改"
Height = 1455
Left = 120
TabIndex = 3
Top = 120
Width = 3225
Begin VB.TextBox txtNewPwd2
Height = 300
IMEMode = 3 'DISABLE
Left = 1290
PasswordChar = "*"
TabIndex = 2
Top = 1080
Width = 1785
End
Begin VB.TextBox txtNewPwd1
Height = 300
IMEMode = 3 'DISABLE
Left = 1290
PasswordChar = "*"
TabIndex = 1
Top = 675
Width = 1785
End
Begin VB.TextBox txtOldPwd
Height = 300
IMEMode = 3 'DISABLE
Left = 1290
PasswordChar = "*"
TabIndex = 0
Top = 270
Width = 1785
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "新密码确认"
Height = 180
Left = 150
TabIndex = 8
Top = 1140
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "新密码"
Height = 180
Left = 150
TabIndex = 7
Top = 735
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "旧密码"
Height = 180
Left = 150
TabIndex = 6
Top = 330
Width = 540
End
End
Begin VB.CommandButton cmdModi
Caption = "更改(&M)"
Default = -1 'True
Height = 375
Left = 1440
TabIndex = 4
Top = 1680
Width = 855
End
End
Attribute VB_Name = "frmChangePwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdModi_Click()
If txtOldPwd = StrPwd Then
If txtNewPwd1 = txtNewPwd2 Then
Call ChangePwd(txtNewPwd2)
Else
MsgBox "两次输入密码不一致!", vbInformation + vbOKOnly, "密码修改"
txtNewPwd1.SetFocus
End If
Else
MsgBox "原始密码错误!", vbInformation + vbOKOnly, "密码修改"
txtOldPwd.SetFocus
End If
Unload Me
End Sub
Private Sub Timer1_Timer()
If frmChangePwd.Caption = "密码修改 . . . . . ." Then
frmChangePwd.Caption = "密码修改 ."
Else
frmChangePwd.Caption = frmChangePwd.Caption + " ."
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -