📄 form5.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form5
Caption = "学生管理"
ClientHeight = 4110
ClientLeft = 5580
ClientTop = 4830
ClientWidth = 5490
LinkTopic = "Form5"
ScaleHeight = 4110
ScaleWidth = 5490
Visible = 0 'False
Begin VB.CommandButton Command5
Caption = "管理员注册"
Height = 495
Left = 2040
TabIndex = 7
Top = 2760
Width = 1695
End
Begin VB.CommandButton Command6
Caption = "学生管理"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3360
TabIndex = 6
Top = 1800
Width = 1335
End
Begin VB.CommandButton Command3
Caption = "成绩录入"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3360
TabIndex = 5
Top = 840
Width = 1335
End
Begin MSAdodcLib.Adodc Adodc1
Height = 615
Left = 240
Top = 3360
Visible = 0 'False
Width = 1335
_ExtentX = 2355
_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 = "Adodc1"
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.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 = 3960
TabIndex = 4
Top = 3360
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "成绩查询"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 840
TabIndex = 3
Top = 1800
Width = 1335
End
Begin VB.CommandButton Command4
Caption = "学生查询"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 840
TabIndex = 2
Top = 840
Width = 1335
End
Begin VB.TextBox Text1
CausesValidation= 0 'False
DataField = "姓名"
DataSource = "Adodc1"
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Left = 1440
TabIndex = 0
Top = 120
Width = 1095
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "老师,欢迎您!"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 2640
TabIndex = 1
Top = 240
Width = 1725
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form3.Show
Unload Me
End Sub
Private Sub Command2_Click()
Form1.Show
Unload Me
End Sub
Private Sub Command3_Click()
Form9.Show
Unload Me
End Sub
Private Sub Command4_Click()
Form10.Show
Unload Me
End Sub
Private Sub Command5_Click()
Form6.Show
Unload Me
End Sub
Private Sub Command6_Click()
Form4.Show
Unload Me
End Sub
Private Sub Text1_Change()
Form5.Text1.Text = Form1.UserName.Text
End Sub
Private Sub Form_Load()
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 管理员帐户 where 姓名='" & Trim(Form1.Text1.Text) & "'"
Adodc1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -