📄 frmmodifypwd.frm
字号:
VERSION 5.00
Begin VB.Form frmModifypwd
Caption = "修改密码"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2160
TabIndex = 7
Top = 2280
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 600
TabIndex = 6
Top = 2280
Width = 975
End
Begin VB.TextBox Text3
Height = 375
IMEMode = 3 'DISABLE
Left = 1560
PasswordChar = "*"
TabIndex = 5
Top = 1560
Width = 1935
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1560
PasswordChar = "*"
TabIndex = 4
Top = 960
Width = 1935
End
Begin VB.TextBox Text1
Height = 375
Left = 1560
TabIndex = 3
Top = 360
Width = 1935
End
Begin VB.Label Label3
Caption = "确认新密码:"
Height = 255
Left = 240
TabIndex = 2
Top = 1680
Width = 1095
End
Begin VB.Label Label2
Caption = "新密码:"
Height = 255
Left = 480
TabIndex = 1
Top = 1080
Width = 735
End
Begin VB.Label Label1
Caption = "原密码:"
Height = 255
Left = 480
TabIndex = 0
Top = 480
Width = 735
End
End
Attribute VB_Name = "frmModifypwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim newpwd As String
Dim jypwd As String
Static i As Integer
jypwd = Trim(Text1.Text)
If jypwd <> Pwd Then
MsgBox "输入的密码不正确,请重新输入!"
i = i + 1
Text1.Text = ""
If i = 3 Then
MsgBox "超过三次,自动退出"
Unload Me
End If
Else
newpwd = Text2.Text
If Text3.Text <> newpwd Then
MsgBox "两次输入的密码不一致,请重新输入新密码"
Text2.Text = ""
Text3.Text = ""
Else
MsgBox "确认修改吗?", vbOKCancel
If vbOK Then
Modifypwd (newpwd)
'MsgBox "密码修改成功!"
Else
Exit Sub
End If
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -