📄 frmstudent.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0"; "THREED32.OCX"
Begin VB.Form frmStudent
Caption = "学生信息"
ClientHeight = 3855
ClientLeft = 1125
ClientTop = 3555
ClientWidth = 12900
LinkTopic = "Form1"
LockControls = -1 'True
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 3855
ScaleWidth = 12900
WindowState = 2 'Maximized
Begin Threed.SSPanel SSPanel1
Height = 495
Left = 720
TabIndex = 0
Top = 300
Width = 4575
_Version = 65536
_ExtentX = 8070
_ExtentY = 873
_StockProps = 15
Caption = "学 生 信 息 记 录"
ForeColor = 8388608
BackColor = 12632256
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BevelOuter = 1
Font3D = 1
End
Begin Threed.SSPanel SSPanel2
Height = 555
Left = 60
TabIndex = 1
Top = 900
Width = 12735
_Version = 65536
_ExtentX = 22463
_ExtentY = 979
_StockProps = 15
BackColor = 12632256
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BevelOuter = 1
Begin VB.ComboBox njComb
Height = 300
ItemData = "frmStudent.frx":0000
Left = 1320
List = "frmStudent.frx":001C
Style = 2 'Dropdown List
TabIndex = 2
Top = 120
Width = 1395
End
Begin VB.ComboBox zyComb
Height = 300
Left = 6960
Style = 2 'Dropdown List
TabIndex = 5
Top = 120
Width = 3255
End
Begin VB.ComboBox bjComb
Height = 300
ItemData = "frmStudent.frx":0050
Left = 10980
List = "frmStudent.frx":0075
Style = 2 'Dropdown List
TabIndex = 6
Top = 120
Width = 1035
End
Begin VB.ComboBox xyComb
Height = 300
Left = 3480
Style = 2 'Dropdown List
TabIndex = 4
Top = 120
Width = 2715
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "年级"
Height = 255
Left = 660
TabIndex = 11
Top = 180
Width = 555
End
Begin VB.Label Label3
Alignment = 2 'Center
Caption = "专业"
Height = 255
Left = 6360
TabIndex = 10
Top = 180
Width = 555
End
Begin VB.Label Label4
Alignment = 2 'Center
Caption = "班级"
Height = 255
Left = 10380
TabIndex = 9
Top = 180
Width = 555
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "学院"
Height = 255
Left = 2880
TabIndex = 3
Top = 180
Width = 555
End
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "frmStudent.frx":00A7
Height = 1755
Left = 300
TabIndex = 7
Top = 1560
Width = 7515
_ExtentX = 13256
_ExtentY = 3096
_Version = 393216
AllowUpdate = -1 'True
AllowArrows = -1 'True
DefColWidth = 100
HeadLines = 2
RowHeight = 17
TabAction = 2
AllowAddNew = -1 'True
AllowDelete = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
ScrollBars = 3
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 8040
Top = 2520
Visible = 0 'False
Width = 2595
_ExtentX = 4577
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 1
LockType = 4
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 = ""
OLEDBString = ""
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 MSComctlLib.StatusBar StatBar
Align = 2 'Align Bottom
Height = 405
Left = 0
TabIndex = 8
Top = 3450
Width = 12900
_ExtentX = 22754
_ExtentY = 714
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Object.Width = 3881
MinWidth = 3881
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Object.Width = 3528
MinWidth = 3528
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 14764
Picture = "frmStudent.frx":00BC
EndProperty
EndProperty
End
End
Attribute VB_Name = "frmStudent"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim cn As New ADODB.Connection '连接对象
Dim DataEdited As Boolean '数据已编辑标志
Dim bFirstStart As Boolean '窗体首次启动的标志
Private Sub Form_Load()
Dim msql$, mrs As ADODB.Recordset
'窗体中心定位
Call CenterPos(StudentMIS, Me)
Call SetAdc
DataEdited = False
bFirstStart = True
'年级组合框
njComb.ListIndex = 0 '显示"全部"
'填充学院组合框
msql$ = "select * from institute order by institute_id asc"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -