📄 frmuserpwdedit.frm
字号:
VERSION 5.00
Begin VB.Form FrmUserPwdEdit
BorderStyle = 1 'Fixed Single
Caption = "修改密码"
ClientHeight = 2550
ClientLeft = 45
ClientTop = 330
ClientWidth = 4260
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2550
ScaleWidth = 4260
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Ok
Caption = "确 定"
Height = 400
Left = 600
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 3
Top = 2040
Width = 1300
End
Begin VB.CommandButton Cmd_Cancel
Cancel = -1 'True
Caption = "取 消"
Height = 400
Left = 2388
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 4
Top = 2040
Width = 1300
End
Begin VB.Frame Frame1
Height = 1815
Left = 240
TabIndex = 5
Top = 120
Width = 3735
Begin VB.TextBox txtPass2
Height = 270
IMEMode = 3 'DISABLE
Left = 1200
MaxLength = 20
PasswordChar = "*"
TabIndex = 2
Top = 1347
Width = 2175
End
Begin VB.TextBox txtPass
Height = 270
IMEMode = 3 'DISABLE
Left = 1200
MaxLength = 20
PasswordChar = "*"
TabIndex = 1
Top = 793
Width = 2175
End
Begin VB.TextBox txtUserName
Height = 270
Left = 1200
MaxLength = 20
TabIndex = 0
Top = 240
Width = 2175
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "用户名"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 8
Top = 240
Width = 540
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "确认密码"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 7
Top = 1392
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "密码"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 6
Top = 816
Width = 360
End
End
End
Attribute VB_Name = "FrmUserPwdEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
If Len(txtPass) < 6 Then
MsgBox "密码不能小于6"
txtPass.SetFocus
Exit Sub
End If
If txtPass <> txtPass2 Then
MsgBox "密码和确认密码不相同,请重新确认"
txtPass2.SetFocus
Exit Sub
End If
'更改用户密码
With MyUser
.UserPwd = MakeStr(txtPass)
.UpdatePwd (MakeStr(txtUserName))
MsgBox "修改完成"
End With
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -