📄 kcxinxi.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"
Begin VB.Form kcxinxi
Caption = "课程信息"
ClientHeight = 5070
ClientLeft = 1515
ClientTop = 750
ClientWidth = 11460
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 5070
ScaleWidth = 11460
Begin VB.CommandButton Command3
Caption = "修改"
Height = 285
Left = 0
TabIndex = 14
Top = 3810
Width = 1005
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 285
Left = 0
TabIndex = 13
Top = 3360
Width = 975
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 285
Left = 30
TabIndex = 12
Top = 2940
Width = 1005
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "kcxinxi.frx":0000
Height = 4965
Left = 2580
TabIndex = 11
Top = 0
Width = 8865
_ExtentX = 15637
_ExtentY = 8758
_Version = 393216
HeadLines = 1
RowHeight = 15
FormatLocked = -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 = 6
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
BeginProperty Column02
DataField = "必修"
Caption = "必修"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 5
Format = ""
HaveTrueFalseNull= 1
TrueValue = "是"
FalseValue = "否"
NullValue = ""
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
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 Column04
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 Column05
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
BeginProperty Column00
ColumnWidth = 2085.166
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
ColumnWidth = 915.024
EndProperty
BeginProperty Column03
ColumnWidth = 1094.74
EndProperty
BeginProperty Column04
ColumnWidth = 1094.74
EndProperty
BeginProperty Column05
ColumnWidth = 1275.024
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 345
Left = 0
Top = 2490
Width = 2415
_ExtentX = 4260
_ExtentY = 609
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=Microsoft.Jet.OLEDB.4.0;Data Source=C:\其他盘文件\VB\大作业\新建文件夹\user.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\其他盘文件\VB\大作业\新建文件夹\user.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "课程表"
Caption = "课程信息浏览"
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.TextBox Text5
DataField = "课程学分"
DataSource = "Adodc1"
Height = 270
Left = 990
TabIndex = 10
Top = 2010
Width = 1395
End
Begin VB.TextBox Text4
DataField = "周学时"
DataSource = "Adodc1"
Height = 285
Left = 990
TabIndex = 9
Top = 1620
Width = 1395
End
Begin VB.TextBox Text3
DataField = "课程总学时"
DataSource = "Adodc1"
Height = 285
Left = 990
TabIndex = 8
Top = 1230
Width = 1395
End
Begin VB.TextBox Text2
DataField = "课程名称"
DataSource = "Adodc1"
Height = 270
Left = 960
TabIndex = 7
Top = 420
Width = 1395
End
Begin VB.TextBox Text1
DataField = "课程号"
DataSource = "Adodc1"
Height = 270
Left = 990
TabIndex = 6
Top = 60
Width = 1395
End
Begin VB.CheckBox Check1
Alignment = 1 'Right Justify
Caption = "必修"
DataField = "必修"
DataSource = "Adodc1"
Height = 225
Left = 360
TabIndex = 3
Top = 852
Width = 795
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "课程学分"
Height = 180
Left = 120
TabIndex = 5
Top = 2040
Width = 720
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "周学时"
Height = 180
Left = 330
TabIndex = 4
Top = 1659
Width = 540
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "课程总学时"
Height = 180
Left = -30
TabIndex = 2
Top = 1278
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "课程名称"
Height = 180
Left = 150
TabIndex = 1
Top = 465
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "课程号"
Height = 180
Left = 330
TabIndex = 0
Top = 90
Width = 540
End
End
Attribute VB_Name = "kcxinxi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
addcourse.Show
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.Delete
If Adodc1.Recordset.EOF = True Then
Adodc1.Recordset.MovePrevious
ElseIf Adodc1.Recordset.BOF = True Then
Adodc1.Recordset.MoveNext
End If
Adodc1.Recordset.Update
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.Update
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -