?? frminputbox.frm
字號:
VERSION 5.00
Begin VB.Form frmIBNU
BackColor = &H00404040&
BorderStyle = 1 'Fixed Single
Caption = "請輸入密碼"
ClientHeight = 1950
ClientLeft = 45
ClientTop = 435
ClientWidth = 7605
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 1950
ScaleWidth = 7605
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取 消"
Height = 345
Left = 6480
TabIndex = 3
Top = 840
Width = 975
End
Begin VB.CommandButton cmdOK
Caption = "確 定"
Default = -1 'True
Height = 345
Left = 6480
TabIndex = 2
Top = 240
Width = 975
End
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 = 120
PasswordChar = "*"
TabIndex = 1
Top = 1560
Width = 7335
End
Begin VB.Label lbl
AutoSize = -1 'True
BackColor = &H00404040&
Caption = "請輸入密碼!(密碼不得長于12位)"
ForeColor = &H00FFFFFF&
Height = 180
Left = 240
TabIndex = 0
Top = 240
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
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -