📄 注册新用户+.frm
字号:
VERSION 5.00
Begin VB.Form Form00
Caption = "注册新用户+"
ClientHeight = 6210
ClientLeft = 60
ClientTop = 345
ClientWidth = 6435
LinkTopic = "Form4"
ScaleHeight = 6210
ScaleWidth = 6435
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "退出注册"
Height = 495
Left = 4440
TabIndex = 11
Top = 4320
Width = 1335
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "注册新用户+.frx":0000
Left = 2760
List = "注册新用户+.frx":000A
TabIndex = 9
Top = 240
Width = 1695
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
IMEMode = 3 'DISABLE
Index = 2
Left = 2760
PasswordChar = "*"
TabIndex = 8
Top = 2760
Width = 1695
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
IMEMode = 3 'DISABLE
Index = 1
Left = 2760
PasswordChar = "*"
TabIndex = 7
Top = 1800
Width = 1695
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Index = 0
Left = 2760
TabIndex = 6
Top = 960
Width = 1695
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\Documents and Settings\xjtu\桌面\计算机科学与技术002杨波+\系统数据库.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 2520
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "登录信息"
Top = 3600
Visible = 0 'False
Width = 1575
End
Begin VB.CommandButton Command3
Caption = "退出注册"
Height = 495
Left = 4440
TabIndex = 5
Top = 4320
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "重新输入"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2400
TabIndex = 4
Top = 4320
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "注册"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 480
TabIndex = 3
Top = 4320
Width = 1335
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "当前用户类别:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 840
TabIndex = 10
Top = 360
Width = 1680
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "输入新用户名:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 840
TabIndex = 2
Top = 1080
Width = 1695
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "重新输入新密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 840
TabIndex = 1
Top = 2880
Width = 1935
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "输入新密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 840
TabIndex = 0
Top = 1920
Width = 1455
End
End
Attribute VB_Name = "Form00"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim i As Integer
If Combo1.ListIndex = 0 Then
For i = 0 To 2
If Text1(i).Text = "" Then i = 5
Next i
If i = 6 Then
MsgBox "记录不能为空", vbOKOnly, "警告"
Else
If Text1(1).Text = Text1(2).Text Then
Data1.Recordset.AddNew
Data1.Recordset.Fields(0).Value = Text1(0).Text
Data1.Recordset.Fields(1).Value = Text1(1).Text
Data1.Recordset.Fields(2).Value = Combo1.ListIndex
Data1.Recordset.Update
If MsgBox("注册成功!", vbOKOnly, "恭喜") = vbOK Then Unload Me
Else
MsgBox "密码不一致", vbOKOnly + vbCritical, "警告"
For i = 0 To 2
Text1(i).Text = ""
Next i
End If
End If
'Else
'MsgBox "请选择用户类型", vbOKOnly, "注意"
End If
End Sub
Private Sub Command2_Click()
Dim i As Integer
For i = o To 2
Text1(i).Text = ""
Next i
Text1(0).SetFocus
End Sub
Private Sub Command3_Click()
Unload Me
Form21.Show
End Sub
Private Sub Command4_Click()
Unload Me
frmLogin.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -