?? frmmodifyuserinfo.frm
字號(hào):
VERSION 5.00
Begin VB.Form FrmUserEdit
Caption = "編輯用戶信息"
ClientHeight = 2910
ClientLeft = 45
ClientTop = 345
ClientWidth = 4125
LinkTopic = "Form1"
ScaleHeight = 2910
ScaleWidth = 4125
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Ok
Caption = "確 定"
Height = 400
Left = 535
MouseIcon = "frmModifyuserinfo.frx":0000
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 8
Top = 2040
Width = 1300
End
Begin VB.CommandButton Cmd_Cancel
Cancel = -1 'True
Caption = "取 消"
Height = 400
Left = 2140
MouseIcon = "frmModifyuserinfo.frx":030A
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 7
Top = 2040
Width = 1300
End
Begin VB.Frame Frame1
Height = 1815
Left = 0
TabIndex = 0
Top = 0
Width = 3975
Begin VB.TextBox txtPass2
Height = 270
IMEMode = 3 'DISABLE
Left = 1560
MaxLength = 20
PasswordChar = "*"
TabIndex = 3
Top = 1320
Width = 2175
End
Begin VB.TextBox txtPass
Height = 270
IMEMode = 3 'DISABLE
Left = 1560
MaxLength = 20
PasswordChar = "*"
TabIndex = 2
Top = 840
Width = 2175
End
Begin VB.TextBox txtUserName
Height = 270
Left = 1560
MaxLength = 20
TabIndex = 1
Top = 360
Width = 2175
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 = 840
Width = 360
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "確認(rèn)密碼"
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 = 5
Top = 1320
Width = 720
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 = 4
Top = 360
Width = 540
End
End
End
Attribute VB_Name = "FrmUserEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriUser As String
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
If Trim(txtUserName) = "" Then
MsgBox "請(qǐng)輸入用戶名"
txtUserName.SetFocus
Exit Sub
End If
If Len(txtPass) < 6 Then
MsgBox "密碼長(zhǎng)度不能小于6"
txtPass.SetFocus
txtPass.SelStart = 0
txtPass.SelLength = Len(txtPass2)
Exit Sub
End If
If txtPass <> txtPass2 Then
MsgBox "密碼和確認(rèn)密碼不相同,請(qǐng)重新確認(rèn)"
txtPass2.SetFocus
txtPass2.SelStart = 0
txtPass2.SelLength = Len(txtPass2)
Exit Sub
End If
With MyUser
If Modify = False Or OriUser <> Trim(txtUserName) Then
If .In_DB(Trim(txtUserName)) = True Then
MsgBox "用戶名已經(jīng)存在,請(qǐng)重新輸入"
txtUserName.SetFocus
txtUserName.SelStart = 0
txtUserName.SelLength = Len(txtUserName)
Exit Sub
End If
End If
.user_ID = MakeStr(txtUserName)
.user_PWD = MakeStr(txtPass)
If Modify = False Then
.Insert
Else
.Update (OriUser)
End If
If CurUser.user_ID <> "Admin" Then
CurUser.user_ID = Trim(txtUserName)
CurUser.user_PWD = Trim(txtPass)
End If
End With
Unload Me
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -