📄 frmibnu.frm
字号:
VERSION 5.00
Begin VB.Form frmIBNU
BackColor = &H80000007&
Caption = "Form1"
ClientHeight = 1410
ClientLeft = 60
ClientTop = 345
ClientWidth = 5190
LinkTopic = "Form1"
ScaleHeight = 1410
ScaleWidth = 5190
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox txt
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
IMEMode = 3 'DISABLE
Left = 240
PasswordChar = "*"
TabIndex = 2
Top = 360
Width = 4575
End
Begin VB.CommandButton cmdOK
Caption = "确 定"
Default = -1 'True
Height = 345
Left = 2640
TabIndex = 1
Top = 840
Width = 975
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取 消"
Height = 345
Left = 3960
TabIndex = 0
Top = 840
Width = 975
End
Begin VB.Label lbl
AutoSize = -1 'True
BackColor = &H80000007&
Caption = "请输入密码!(密码不得长于12位)"
ForeColor = &H00FFFFFF&
Height = 180
Left = 240
TabIndex = 3
Top = 120
Width = 2880
End
End
Attribute VB_Name = "frmIBNU"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'判断用户密码输入的正确性↓
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
If txt.Text = "" Then
MsgBox "密码不能为空!"
Exit Sub
End If
If Len(txt.Text) > 12 Then
MsgBox "密码不能长于12位!"
Exit Sub
End If
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'如果用户输入正确,则新建用户
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Call LinkDB(landWay, SName, "weboy", SUName, SUPw)
con.Open
con.Execute "insert users values('" & frmNewUser.txt.Text & "','" & txt.Text & "','" & frmNewUser.cmb.Text & "')"
con.Close
MsgBox "用户新建成功!"
Unload Me
Unload frmNewUser
End Sub
Private Sub Form_Load()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -