📄 frmaddadmin.frm
字号:
VERSION 5.00
Begin VB.Form frmAddAdmin
BorderStyle = 1 'Fixed Single
Caption = "AddManager"
ClientHeight = 3195
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.CommandButton CancelComm
Caption = "取消"
Height = 495
Left = 2760
TabIndex = 7
Top = 2040
Width = 1215
End
Begin VB.CommandButton SaveComm
Caption = "保存"
Height = 495
Left = 1320
TabIndex = 6
Top = 2040
Width = 1215
End
Begin VB.TextBox txtpwd2
Height = 495
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 4
Text = "Text3"
Top = 1320
Width = 2655
End
Begin VB.TextBox txtpwd1
Height = 495
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 1
Text = "Text2"
Top = 720
Width = 2655
End
Begin VB.TextBox txtusername
Height = 495
Left = 1680
TabIndex = 0
Text = "请输入名字"
Top = 120
Width = 2655
End
Begin VB.Label Label3
Caption = "确认密码:"
Height = 495
Left = 240
TabIndex = 5
Top = 1440
Width = 1215
End
Begin VB.Label Label2
Caption = "密码:"
Height = 495
Left = 240
TabIndex = 3
Top = 720
Width = 1215
End
Begin VB.Label Label1
Caption = "名字:"
Height = 495
Left = 240
TabIndex = 2
Top = 120
Width = 1215
End
End
Attribute VB_Name = "frmAddAdmin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim addadmin As New Class1
Private Sub CancelComm_Click()
Unload Me
End Sub
Private Sub SaveComm_Click()
Dim str As String
If txtpwd1.Text <> txtpwd2.Text Then
MsgBox "输入的两次密码不一致"
txtpwd1.SetFocus
txtpwd1.SelStart = 0
txtpwd1.SelLength = Len(txtpwd1.Text)
End If
If addadmin.ocn.State = False Then addadmin.OpenData
addadmin.ocn.Execute "insert into admin(user_name,user_password,popedom)values('" & Trim(txtusername.Text) & "','" & txtpwd1 & "',1)"
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -