frmhome.frm
来自「数据库学生信息管理系统(02060204)」· FRM 代码 · 共 172 行
FRM
172 行
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmHome
Caption = "frmHome"
ClientHeight = 4380
ClientLeft = 4335
ClientTop = 2835
ClientWidth = 6390
LinkTopic = "Form1"
ScaleHeight = 4380
ScaleWidth = 6390
Begin MSAdodcLib.Adodc Adodc2
Height = 735
Left = 2400
Top = 3360
Visible = 0 'False
Width = 1575
_ExtentX = 2778
_ExtentY = 1296
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
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=学生管理系统;Data Source=MONICA"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=学生管理系统;Data Source=MONICA"
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.CommandButton cmdTeacher
Caption = "登录"
Height = 495
Left = 5160
TabIndex = 6
Top = 2040
Width = 735
End
Begin VB.TextBox txtForT
Height = 495
Left = 2880
TabIndex = 5
Top = 2040
Width = 2175
End
Begin VB.PictureBox Adodc1
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 735
Left = 120
ScaleHeight = 675
ScaleWidth = 1515
TabIndex = 8
Top = 3600
Visible = 0 'False
Width = 1575
End
Begin VB.CommandButton cmdEixt
Caption = "退出"
Height = 495
Left = 4800
TabIndex = 3
Top = 3840
Width = 1215
End
Begin VB.CommandButton cmdForSC
Caption = "查看成绩"
Height = 495
Left = 5160
TabIndex = 2
Top = 1200
Width = 735
End
Begin VB.CommandButton cmdForC
Caption = "查看课程信息"
Height = 495
Left = 4680
TabIndex = 1
Top = 2760
Visible = 0 'False
Width = 1215
End
Begin VB.CommandButton cmdToS
Caption = "查看学生信息"
Height = 495
Left = 360
TabIndex = 0
Top = 2760
Visible = 0 'False
Width = 1215
End
Begin VB.Label Label2
Caption = "学生可以在此查询自己的成绩:"
Height = 495
Left = 360
TabIndex = 7
Top = 1200
Width = 2535
End
Begin VB.Label Label1
Caption = "教师登录,请输入您的密码:"
Height = 495
Left = 360
TabIndex = 4
Top = 2040
Width = 2535
End
End
Attribute VB_Name = "frmHome"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdEixt_Click()
Unload Me
End Sub
Private Sub cmdForC_Click()
frmForC.Show
End Sub
Private Sub cmdForSC_Click()
frmForSC.Show
End Sub
Private Sub cmdTeacher_Click()
If txtForT.Text = "5438" Then
cmdToS.Visible = True
cmdForC.Visible = True
End If
End Sub
Private Sub cmdToS_Click()
frmForS.Show
End Sub
Private Sub Form_Load()
Dim sql As String
sql = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=学生管理系统;Data Source=MONICA"
cn.Open sql
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?