?? 用戶注冊.frm
字號:
VERSION 5.00
Begin VB.Form Form10
Caption = "用戶注冊"
ClientHeight = 4230
ClientLeft = 60
ClientTop = 345
ClientWidth = 6540
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "用戶注冊.frx":0000
LinkTopic = "Form10"
Picture = "用戶注冊.frx":08CA
ScaleHeight = 4230
ScaleWidth = 6540
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "取 消"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3600
TabIndex = 9
Top = 3360
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "確 定"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1920
TabIndex = 8
Top = 3360
Width = 1095
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游標
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 2160
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 2760
Visible = 0 'False
Width = 2580
End
Begin VB.TextBox Text4
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
IMEMode = 3 'DISABLE
Left = 3360
MaxLength = 8
PasswordChar = "*"
TabIndex = 7
Top = 2280
Width = 2295
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
IMEMode = 3 'DISABLE
Left = 3360
MaxLength = 8
PasswordChar = "*"
TabIndex = 6
Top = 1680
Width = 2295
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 3360
MaxLength = 8
TabIndex = 5
Top = 1080
Width = 2295
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 3360
MaxLength = 4
TabIndex = 4
Top = 480
Width = 2295
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "確認密碼:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1920
TabIndex = 3
Top = 2280
Width = 1335
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "密碼:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1920
TabIndex = 2
Top = 1680
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "用戶名:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1920
TabIndex = 1
Top = 1080
Width = 1095
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "用戶編號:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1920
TabIndex = 0
Top = 480
Width = 1215
End
End
Attribute VB_Name = "Form10"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Data1.DatabaseName = App.Path + "\db.mdb"
Data1.RecordSource = "用戶管理"
End Sub
Private Sub Command1_Click()
If Text1.Text = "" And Text2.Text = "" And Text3.Text = "" And Text4.Text = "" Then
MsgBox "請輸入完整的注冊信息"
Else
If Text1.Text = "" Then
MsgBox "請輸入用戶編號"
Else
If Text2.Text = "" Then
MsgBox "必須輸入用戶名"
Else
If Text3.Text = "" Then
MsgBox "請輸入密碼"
Else
If Text3.Text <> Text4.Text Then
MsgBox "你兩次輸入的密碼不同", 0, "錯誤"
Text3.Text = ""
Text4.Text = ""
Text3.SetFocus
Exit Sub
Else
Data1.Recordset.AddNew
Data1.Recordset.Fields("用戶編號") = Text1.Text
Data1.Recordset.Fields("用戶名") = Text2.Text
Data1.Recordset.Fields("密碼") = Text3.Text
Data1.Recordset.Update
MDIForm1.Show
Form3.Show
Unload Me
End If
End If
End If
End If
End If
End Sub
Private Sub Command2_Click()
End
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -