📄 frmstudents.frm
字号:
VERSION 5.00
Begin VB.Form frmStudent
BorderStyle = 1 'Fixed Single
Caption = "学生信息管理"
ClientHeight = 4590
ClientLeft = 45
ClientTop = 330
ClientWidth = 7770
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 4590
ScaleWidth = 7770
Begin VB.TextBox txtExp
Height = 1080
IMEMode = 1 'ON
Left = 1643
MaxLength = 400
MultiLine = -1 'True
TabIndex = 9
Top = 2430
Width = 5280
End
Begin VB.TextBox txtHome
Height = 270
IMEMode = 1 'ON
Left = 1643
MaxLength = 50
TabIndex = 8
Top = 2043
Width = 5295
End
Begin VB.TextBox txtEmail
Height = 270
IMEMode = 2 'OFF
Left = 4890
MaxLength = 25
TabIndex = 7
Top = 1656
Width = 2010
End
Begin VB.ComboBox cmbSex
Height = 300
IMEMode = 2 'OFF
ItemData = "frmStudents.frx":0000
Left = 4868
List = "frmStudents.frx":000A
Style = 2 'Dropdown List
TabIndex = 6
Top = 1254
Width = 2010
End
Begin VB.TextBox txtPhone
Height = 270
IMEMode = 2 'OFF
Left = 1643
MaxLength = 11
TabIndex = 3
Top = 1656
Width = 2010
End
Begin VB.ComboBox cmbGrade
Height = 300
IMEMode = 2 'OFF
Left = 4890
Style = 2 'Dropdown List
TabIndex = 5
Top = 852
Width = 2010
End
Begin VB.ComboBox cmbDepart
Height = 300
IMEMode = 2 'OFF
Left = 1643
Style = 2 'Dropdown List
TabIndex = 1
Top = 852
Width = 2010
End
Begin VB.TextBox txtBirth
BeginProperty DataFormat
Type = 1
Format = "yyyy-MM-dd"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 3
EndProperty
Height = 270
IMEMode = 2 'OFF
Left = 1665
MaxLength = 10
TabIndex = 2
Top = 1269
Width = 2010
End
Begin VB.TextBox txtNum
Height = 270
IMEMode = 2 'OFF
Left = 4868
MaxLength = 8
TabIndex = 4
Top = 465
Width = 2010
End
Begin VB.CommandButton cmdSave
Caption = "保存"
Height = 300
Left = 5258
TabIndex = 16
Top = 3795
Width = 735
End
Begin VB.CommandButton cmdExit
Cancel = -1 'True
Caption = "取消"
Height = 315
Left = 6023
TabIndex = 17
Top = 3788
Width = 735
End
Begin VB.CommandButton cmdDelete
Caption = "删除"
Height = 300
Left = 4493
TabIndex = 15
Top = 3795
Width = 735
End
Begin VB.CommandButton cmdAdd
Caption = "添加"
Height = 300
Left = 3750
TabIndex = 14
Top = 3795
Width = 735
End
Begin VB.TextBox txtName
Height = 270
IMEMode = 1 'ON
Left = 1643
MaxLength = 10
TabIndex = 0
Top = 465
Width = 2010
End
Begin VB.PictureBox picNavigation
AutoSize = -1 'True
BorderStyle = 0 'None
Height = 360
Left = 1013
ScaleHeight = 360
ScaleWidth = 2685
TabIndex = 18
Top = 3765
Width = 2685
Begin VB.CommandButton cmdMove
Height = 300
Index = 1
Left = 360
Picture = "frmStudents.frx":0016
Style = 1 'Graphical
TabIndex = 11
Top = 15
Width = 345
End
Begin VB.CommandButton cmdMove
Height = 300
Index = 0
Left = 30
Picture = "frmStudents.frx":005B
Style = 1 'Graphical
TabIndex = 10
Top = 15
Width = 345
End
Begin VB.CommandButton cmdMove
Height = 300
Index = 3
Left = 2280
Picture = "frmStudents.frx":00A8
Style = 1 'Graphical
TabIndex = 13
Top = 15
Width = 345
End
Begin VB.CommandButton cmdMove
Height = 300
Index = 2
Left = 1950
Picture = "frmStudents.frx":00F7
Style = 1 'Graphical
TabIndex = 12
Top = 15
Width = 345
End
Begin VB.TextBox txtNews
Height = 300
Left = 690
Locked = -1 'True
TabIndex = 19
TabStop = 0 'False
Top = 15
Width = 1275
End
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "简 历"
Height = 180
Left = 833
TabIndex = 29
Top = 2430
Width = 720
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "家庭住址"
Height = 180
Left = 833
TabIndex = 28
Top = 2088
Width = 720
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "电子邮件"
Height = 180
Left = 4073
TabIndex = 27
Top = 1701
Width = 720
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "联系电话"
Height = 180
Left = 833
TabIndex = 26
Top = 1701
Width = 720
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "性 别"
Height = 180
Left = 4073
TabIndex = 25
Top = 1314
Width = 720
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "所属班级"
Height = 180
Left = 4073
TabIndex = 24
Top = 912
Width = 720
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "出生日期"
BeginProperty DataFormat
Type = 0
Format = "dddddd"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 180
Left = 833
TabIndex = 23
Top = 1314
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "所属系部"
Height = 180
Left = 833
TabIndex = 22
Top = 912
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "学生编号"
Height = 180
Left = 4073
TabIndex = 21
Top = 510
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "学生姓名"
Height = 180
Left = 833
TabIndex = 20
Top = 510
Width = 720
End
End
Attribute VB_Name = "frmStudent"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim isAdding As Boolean '定义操作状态标志
Dim objStudent As Recordset '用于保存学生信息记录
Dim objDepart As Recordset '用于保存系部编号和名称
Dim objGrade As Recordset '用于保存班级编号和名称
Dim objCn As Connection '用于建立数据库联接
Private Sub cmdExit_Click()
Unload Me '关闭学生信息管理窗体
End Sub
Private Sub Form_Load()
'建立数据库联接
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -