📄 form_cjxt14.frm
字号:
Key = "退出"
Object.Tag = "Exit"
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 420
Left = 0
TabIndex = 4
Top = 0
Width = 9195
_ExtentX = 16219
_ExtentY = 741
ButtonWidth = 1032
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 1
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Exit"
Object.ToolTipText = "退出"
ImageIndex = 1
EndProperty
EndProperty
End
Begin VB.CommandButton Command_Next
Caption = "下一步"
Height = 585
Left = 7080
Picture = "Form_CJXT14.frx":04B6
Style = 1 'Graphical
TabIndex = 3
Top = 6840
Width = 1095
End
Begin VB.CommandButton Command_Up
Caption = "上一步"
Height = 585
Left = 720
Picture = "Form_CJXT14.frx":063A
Style = 1 'Graphical
TabIndex = 2
Top = 6840
Width = 1095
End
Begin MSDataGridLib.DataGrid DataGrid_PD
Bindings = "Form_CJXT14.frx":07BE
Height = 3285
Left = 30
TabIndex = 1
Top = 780
Width = 8535
_ExtentX = 15055
_ExtentY = 5794
_Version = 393216
AllowUpdate = -1 'True
HeadLines = 1
RowHeight = 23
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 = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 4
BeginProperty Column00
DataField = "ID"
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 = "score"
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 = "difficult"
Caption = "难度系数"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "content"
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 = 1244.976
EndProperty
BeginProperty Column01
ColumnWidth = 659.906
EndProperty
BeginProperty Column02
ColumnWidth = 929.764
EndProperty
BeginProperty Column03
ColumnWidth = 4380.095
EndProperty
EndProperty
End
Begin VB.Label Label3
Caption = "要删除的编号:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 4980
TabIndex = 7
Top = 4170
Width = 1575
End
Begin VB.Label Label2
Caption = "要选择的编号:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 510
TabIndex = 6
Top = 4170
Width = 1605
End
Begin VB.Label Label1
Caption = "所 有 判 断 题"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3360
TabIndex = 0
Top = 510
Width = 1875
End
End
Attribute VB_Name = "Form_CJXT14"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command_Next_Click()
Form_CJXT15.Show
Form_CJXT14.Hide
End Sub
Private Sub Command_Up_Click()
Form_CJXT13.Show
Form_CJXT14.Hide
End Sub
Private Sub Command1_Click()
ret = MsgBox("是否要选择该题目!", 4 + 32 + 256 + 4096, "确定")
If ret = vbYes Then
Cmd.CommandType = adCmdText
Cmd.CommandText = "insert into shijuan(ID,score,difficult,content) select ID,score,difficult,content from tftable where ID='" & Text1.Text & "'"
Cmd.Execute
ret = MsgBox("恭喜您,你已经成功选择该题目!")
Adodc_shijuan.Refresh
DataGrid_shijuan.Refresh
Else
Form_CJXT14.Show
End If
End Sub
Private Sub Command2_Click()
ret = MsgBox("是否要删除该题目!", 4 + 32 + 256 + 4096, "确定")
If ret = vbYes Then
Cmd.CommandType = adCmdText
Cmd.CommandText = "delete from shijuan where ID='" & Text1.Text & "'"
Cmd.Execute
ret = MsgBox("恭喜您,你已经成功删除该题目!")
Adodc_shijuan.Refresh
DataGrid_shijuan.Refresh
Else
Form_CJXT14.Show
End If
End Sub
Private Sub DataGrid_PD_Click()
With DataGrid_PD
If .Col = 0 And .Row >= 0 Then
Text1.Text = .Text
End If
End With
End Sub
Private Sub DataGrid_shijuan_Click()
With DataGrid_shijuan
If .Col = 0 And .Row >= 0 Then
Text2.Text = .Text
End If
End With
End Sub
Private Sub Form_Load()
Height = 8000
Width = 9000
Left = 4700
Top = 1700
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "Exit"
Unload Me
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -