📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00FFC0C0&
Caption = "用户登录"
ClientHeight = 2235
ClientLeft = 4800
ClientTop = 2415
ClientWidth = 4515
LinkTopic = "Form1"
MaxButton = 0 'False
Picture = "Form1.frx":0000
ScaleHeight = 2235
ScaleWidth = 4515
Begin VB.CommandButton Command2
Caption = "登 录"
Height = 255
Left = 3120
TabIndex = 6
Top = 840
Width = 735
End
Begin VB.CommandButton Command1
Caption = "登 录"
Height = 255
Left = 3120
TabIndex = 1
Top = 1320
Width = 735
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "Form1.frx":2357
Left = 1800
List = "Form1.frx":2364
TabIndex = 2
Text = "班级"
Top = 840
Width = 1200
End
Begin VB.TextBox Text1
Height = 300
IMEMode = 3 'DISABLE
Left = 1800
PasswordChar = "*"
TabIndex = 3
Text = "111111"
Top = 1320
Width = 1200
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "普通用户登录"
BeginProperty Font
Name = "华文中宋"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000007&
Height = 255
Left = 360
TabIndex = 5
Top = 840
Width = 1455
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "管理人员登录"
BeginProperty Font
Name = "华文中宋"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000007&
Height = 255
Left = 360
TabIndex = 4
Top = 1320
Width = 1455
End
Begin VB.Label Label1
BackColor = &H00FF0000&
BackStyle = 0 'Transparent
Caption = "学生课程管理系统"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 840
TabIndex = 0
Top = 120
Width = 2775
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If IsNumeric(Trim(Text1.Text)) Then
If Text1.Text = 123 Then
Form3.Show
Unload Me
Else
MsgBox "密码错误"
End If
Else
MsgBox "瞎乱敲啥!!请使用数字规则"
End If
End Sub
Private Sub Command2_Click()
Dim questr As String, sql As String
questr = Combo1.List(Combo1.ListIndex)
sql = "select 上课班级,课程名称,上课时间,上课地点,课程学分,任课教师 from main where 上课班级=" & "'" & questr & "'"
Form2.Adodc1.RecordSource = sql
Form2.Adodc1.Refresh
Form2.Show
Unload Me
End Sub
Private Sub Label4_Click()
If IsNumeric(Trim(Text1.Text)) Then
If Text1.Text = 123 Then
Form3.Show
Unload Me
Else
MsgBox "密码错误"
End If
Else
MsgBox "瞎乱敲啥!!请使用数字规则"
End If
End Sub
Private Sub Label5_Click()
Dim questr As String, sql As String
questr = Combo1.List(Combo1.ListIndex)
sql = "select 上课班级,课程名称,上课时间,上课地点,课程学分,任课教师 from main where 上课班级=" & "'" & questr & "'"
Form2.Adodc1.RecordSource = sql
Form2.Adodc1.Refresh
Form2.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -