📄 frmchgpass.frm
字号:
VERSION 5.00
Begin VB.Form frmchgpass
BorderStyle = 3 'Fixed Dialog
Caption = "更改口令"
ClientHeight = 2835
ClientLeft = 2835
ClientTop = 3480
ClientWidth = 4050
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1675.012
ScaleMode = 0 'User
ScaleWidth = 3802.731
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox Txtnewpsd1
Height = 345
IMEMode = 3 'DISABLE
Left = 1290
PasswordChar = "*"
TabIndex = 5
Top = 1515
Width = 2325
End
Begin VB.TextBox txtoldpsd
Height = 345
IMEMode = 3 'DISABLE
Left = 1290
PasswordChar = "*"
TabIndex = 1
Top = 705
Width = 2325
End
Begin VB.CommandButton cmdOK
Caption = "确定"
Default = -1 'True
Height = 390
Left = 1680
TabIndex = 4
Top = 2280
Width = 1140
End
Begin VB.TextBox txtnewpsd
Height = 345
IMEMode = 3 'DISABLE
Left = 1290
PasswordChar = "*"
TabIndex = 3
Top = 1095
Width = 2325
End
Begin VB.Label labelname
Height = 270
Left = 1800
TabIndex = 8
Top = 240
Width = 1080
End
Begin VB.Label lblLabels
Caption = "用户名:"
Height = 270
Index = 3
Left = 120
TabIndex = 7
Top = 240
Width = 1080
End
Begin VB.Label lblLabels
Caption = "确认新口令:"
Height = 270
Index = 2
Left = 120
TabIndex = 6
Top = 1530
Width = 1080
End
Begin VB.Label lblLabels
Caption = "现有口令:"
Height = 270
Index = 0
Left = 105
TabIndex = 0
Top = 720
Width = 1080
End
Begin VB.Label lblLabels
Caption = "新口令:"
Height = 270
Index = 1
Left = 105
TabIndex = 2
Top = 1110
Width = 1080
End
End
Attribute VB_Name = "frmchgpass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdOK_Click()
Dim oldpass As String
oldpass = bas.getpasswd(labelname.Caption)
If txtoldpsd.Text <> oldpass Then
MsgBox "口令错误"
Exit Sub
End If
If Len(txtnewpsd.Text) = 0 Or Len(txtnewpsd.Text) > 6 Then
MsgBox "新口令长度应小于6个字符且不能为空"
Exit Sub
End If
If txtnewpsd.Text <> Txtnewpsd1.Text Then
MsgBox "两次输入新口令不一致"
Exit Sub
End If
Call bas.savepasswd(labelname.Caption, txtnewpsd.Text, 0)
MsgBox "口令修改成功"
Unload Me
End Sub
Private Sub Form_Load()
'Form1.Enabled = False
labelname.Caption = usname
End Sub
Private Sub Form_Unload(Cancel As Integer)
'Form1.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -