📄 c考试信息.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form C考试信息
Caption = "考试信息"
ClientHeight = 5280
ClientLeft = 60
ClientTop = 450
ClientWidth = 6990
LinkTopic = "Form1"
ScaleHeight = 5280
ScaleWidth = 6990
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "考试信息列表"
Height = 2175
Left = 120
TabIndex = 20
Top = 120
Width = 6735
Begin MSComctlLib.ListView ListView1
Height = 1695
Left = 120
TabIndex = 21
Top = 240
Width = 6255
_ExtentX = 11033
_ExtentY = 2990
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
Icons = "ImageList1"
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
End
Begin VB.Frame Frame2
Caption = "编辑考试信息"
Height = 2895
Left = 120
TabIndex = 0
Top = 2280
Width = 6735
Begin VB.TextBox txt
Appearance = 0 'Flat
Height = 375
Index = 2
Left = 4680
MaxLength = 10
TabIndex = 13
Top = 720
Width = 1695
End
Begin VB.TextBox txt
Appearance = 0 'Flat
Height = 375
Index = 0
Left = 1080
MaxLength = 10
TabIndex = 12
Top = 240
Width = 1695
End
Begin VB.Frame Frame4
Height = 735
Left = 120
TabIndex = 4
Top = 2040
Width = 6495
Begin VB.CommandButton CmdEnd
BackColor = &H00C0C0C0&
Caption = "结束"
Height = 360
Left = 3980
Style = 1 'Graphical
TabIndex = 22
Top = 240
Width = 800
End
Begin VB.CommandButton CmdModify
BackColor = &H00C0C0C0&
Caption = "修改"
Height = 360
Left = 810
Style = 1 'Graphical
TabIndex = 11
Top = 240
Width = 800
End
Begin VB.CommandButton CmdExit
BackColor = &H00C0C0C0&
Caption = "退出"
Height = 360
Left = 5595
Style = 1 'Graphical
TabIndex = 10
Top = 240
Width = 800
End
Begin VB.CommandButton CmdCancel
BackColor = &H00C0C0C0&
Caption = "取消"
Height = 360
Left = 4780
Style = 1 'Graphical
TabIndex = 9
Top = 240
Width = 800
End
Begin VB.CommandButton CmdDelete
BackColor = &H00C0C0C0&
Caption = "删除"
Height = 360
Left = 1605
Style = 1 'Graphical
TabIndex = 8
Top = 240
Width = 800
End
Begin VB.CommandButton CmdAdd
BackColor = &H00C0C0C0&
Caption = "添加"
Height = 360
Left = 30
Style = 1 'Graphical
TabIndex = 7
Top = 240
Width = 800
End
Begin VB.CommandButton CmdSave
BackColor = &H00C0C0C0&
Caption = "保存"
Enabled = 0 'False
Height = 360
Left = 2400
Style = 1 'Graphical
TabIndex = 6
Top = 240
Width = 800
End
Begin VB.CommandButton CmdStart
BackColor = &H00C0C0C0&
Caption = "启动"
Height = 360
Left = 3190
Style = 1 'Graphical
TabIndex = 5
Top = 240
Width = 800
End
End
Begin VB.TextBox txt
Appearance = 0 'Flat
Height = 375
Index = 1
Left = 1080
MaxLength = 10
TabIndex = 3
Top = 720
Width = 1695
End
Begin VB.ComboBox Cboflag
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 1080
Style = 2 'Dropdown List
TabIndex = 2
Top = 1200
Width = 1695
End
Begin VB.TextBox txttime
Appearance = 0 'Flat
Height = 375
Left = 4680
TabIndex = 1
Top = 240
Width = 1695
End
Begin VB.Label Label1
Caption = "考试代码:"
Height = 255
Index = 0
Left = 120
TabIndex = 19
Top = 360
Width = 975
End
Begin VB.Label Label1
Caption = "开考时间:"
Height = 255
Index = 1
Left = 3720
TabIndex = 18
Top = 360
Width = 975
End
Begin VB.Label Label1
Caption = "考试时间:"
Height = 255
Index = 2
Left = 120
TabIndex = 17
Top = 840
Width = 975
End
Begin VB.Label Label1
Caption = "考试人数:"
Height = 255
Index = 3
Left = 3720
TabIndex = 16
Top = 840
Width = 975
End
Begin VB.Label Label8
Caption = "(10位)"
ForeColor = &H000000FF&
Height = 255
Index = 1
Left = 2805
TabIndex = 15
Top = 360
Width = 615
End
Begin VB.Label Label1
Caption = "考试标志:"
Height = 255
Index = 4
Left = 120
TabIndex = 14
Top = 1320
Width = 975
End
End
Begin MSComctlLib.ImageList ImageList1
Left = 120
Top = 480
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 1
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "C考试信息.frx":0000
Key = ""
EndProperty
EndProperty
End
End
Attribute VB_Name = "C考试信息"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim rs As ADODB.Recordset
Dim SQL As String
Dim msg As String
Dim Index As Integer
Dim flag As String '判断是新增记录还是修改记录
Private Sub Form_Load()
'初始化启用标志ComboBox
Cboflag.AddItem ("新建考试")
Cboflag.AddItem ("考试启动")
Cboflag.AddItem ("考试结束")
Cboflag.listindex = 0 '默认启用标志新建考试
Call LoadData '装载数据
Call ShowData '显示数据
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -