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