📄 frmadduser.frm
字号:
VERSION 5.00
Begin VB.Form frmAddUser
Caption = "添加用户"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdCancle
Caption = "取消"
Height = 375
Left = 2760
TabIndex = 9
Top = 2640
Width = 855
End
Begin VB.CommandButton cmdOK
Caption = "确认"
Height = 375
Left = 840
TabIndex = 8
Top = 2640
Width = 855
End
Begin VB.TextBox Text4
Height = 375
Left = 1800
TabIndex = 7
Top = 360
Width = 1935
End
Begin VB.TextBox Text3
Height = 375
Left = 1800
TabIndex = 5
Top = 2040
Width = 1935
End
Begin VB.TextBox Text2
Height = 375
Left = 1800
TabIndex = 4
Top = 1440
Width = 1935
End
Begin VB.TextBox Text1
Height = 375
Left = 1800
TabIndex = 3
Top = 840
Width = 1935
End
Begin VB.Label Label4
Caption = "登陆名:"
Height = 255
Left = 720
TabIndex = 6
Top = 480
Width = 735
End
Begin VB.Label Label3
Caption = "确认密码:"
Height = 255
Left = 720
TabIndex = 2
Top = 2160
Width = 855
End
Begin VB.Label Label2
Caption = "密 码:"
Height = 255
Left = 720
TabIndex = 1
Top = 1560
Width = 735
End
Begin VB.Label Label1
Caption = "用户名:"
Height = 255
Left = 720
TabIndex = 0
Top = 960
Width = 735
End
End
Attribute VB_Name = "frmAddUser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancle_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
Dim ui, un, pw As String
ui = Text4.Text
un = Text1.Text
pw = Text2.Text
If pw <> Text3.Text Then
MsgBox "密码不一致,请重新输入!"
Text2.Text = ""
Text3.Text = ""
Else
MsgBox "确定增加该用户吗?", vbOKCancel
If vbOK Then
AddUser Text4.Text, pw, Text1.Text
Else
Exit Sub
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -