?? 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 + -