📄 form6.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form6
Caption = "管理员注册"
ClientHeight = 4695
ClientLeft = 60
ClientTop = 345
ClientWidth = 6510
LinkTopic = "Form6"
ScaleHeight = 4695
ScaleWidth = 6510
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
DataField = "姓名"
DataSource = "Adodc2"
Height = 375
Left = 1320
TabIndex = 0
Top = 360
Width = 2535
End
Begin VB.TextBox Text2
DataField = "帐号"
DataSource = "Adodc2"
Height = 495
IMEMode = 3 'DISABLE
Left = 1320
TabIndex = 1
Top = 1080
Width = 2535
End
Begin VB.CommandButton Command1
Caption = "完成"
Height = 615
Left = 2040
TabIndex = 6
Top = 3480
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 615
Left = 4320
TabIndex = 5
Top = 3480
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "刷新"
Height = 495
Left = 4080
TabIndex = 3
Top = 1320
Width = 1215
End
Begin VB.TextBox Text3
DataField = "密码"
DataSource = "Adodc2"
Height = 495
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 4
Top = 2520
Width = 2535
End
Begin VB.TextBox Text4
DataField = "密码"
Height = 495
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 2
Top = 1800
Width = 2535
End
Begin MSAdodcLib.Adodc Adodc2
Height = 615
Left = 4440
Top = 600
Width = 1200
_ExtentX = 2117
_ExtentY = 1085
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=学生管理"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=学生管理"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "管理员帐户"
Caption = "Adodc2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "帐号"
Height = 180
Left = 720
TabIndex = 11
Top = 1200
Width = 360
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "密码1"
Height = 180
Left = 600
TabIndex = 10
Top = 1920
Width = 450
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "姓名"
Height = 180
Left = 720
TabIndex = 9
Top = 480
Width = 360
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "密码2"
Height = 180
Left = 600
TabIndex = 8
Top = 2640
Width = 450
End
Begin VB.Label Label5
Caption = "两次密码相同"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 480
Left = 4320
TabIndex = 7
Top = 2160
Width = 720
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
Form5.Show
Unload Me
End Sub
Private Sub Command3_Click()
Adodc2.Recordset.AddNew
End Sub
Private Sub Command1_Click()
If Text2.Text <> Text4.Text Then
With Adodc2.Recordset
.Fields("密码") = Trim(Text3.Text)
.Fields("帐号") = Trim(Text2.Text)
.Fields("姓名") = Trim(Text1.Text)
End With
Adodc2.Recordset.Update
Command1.Enabled = False
Command3.Enabled = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -