📄 frmmodypassword.frm
字号:
VERSION 5.00
Begin VB.Form Frmmodypassword
Caption = "Form1"
ClientHeight = 3135
ClientLeft = 60
ClientTop = 465
ClientWidth = 5100
LinkTopic = "Form1"
ScaleHeight = 3135
ScaleWidth = 5100
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "返 回 "
Height = 495
Left = 3360
TabIndex = 8
Top = 2400
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "清 空"
Height = 495
Left = 1800
TabIndex = 7
Top = 2400
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确 定"
Height = 495
Left = 240
TabIndex = 6
Top = 2400
Width = 1215
End
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Index = 2
Left = 1800
PasswordChar = "*"
TabIndex = 5
Top = 1800
Width = 2055
End
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Index = 1
Left = 1800
PasswordChar = "*"
TabIndex = 1
Top = 1080
Width = 2055
End
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Index = 0
Left = 1800
PasswordChar = "*"
TabIndex = 0
Top = 360
Width = 2055
End
Begin VB.Label Label3
Caption = "确认密码:"
Height = 255
Left = 720
TabIndex = 4
Top = 1800
Width = 975
End
Begin VB.Label Label2
Caption = "新密码:"
Height = 375
Left = 840
TabIndex = 3
Top = 1080
Width = 735
End
Begin VB.Label Label1
Caption = "旧密码:"
Height = 375
Left = 840
TabIndex = 2
Top = 480
Width = 735
End
End
Attribute VB_Name = "Frmmodypassword"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Open_user_message
If Text1(0).Text <> usepassword Then
MsgBox "旧密码不正确!"
Exit Sub
End If
If Text1(1).Text <> Text1(2).Text Then
MsgBox " 确认密码不正确!"
Text1(1).Text = ""
Text1(2).Text = ""
Exit Sub
End If
Do While cnn.EOF = False
If cnn.EOF = True Then
Exit Do
End If
If cnn.Fields(0).Value = usename Then
cnn.Fields(1).Value = Text1(1).Text
cnn.Update
MsgBox "修改成功!"
End If
cnn.MoveNext
Loop
End Sub
Private Sub Command2_Click()
Text1(0).Text = ""
Text1(1).Text = ""
Text1(2).Text = ""
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -