⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spaceedit.frm

📁 vb写的试题库生成系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form SpaceEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "填空题管理"
   ClientHeight    =   6750
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9945
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6750
   ScaleWidth      =   9945
   StartUpPosition =   2  '屏幕中心
   Begin VB.ComboBox cmbChapter 
      Height          =   300
      Left            =   1295
      Style           =   2  'Dropdown List
      TabIndex        =   27
      Top             =   225
      Width           =   4425
   End
   Begin VB.CommandButton cmdAddChapter 
      Caption         =   "添加一章"
      Height          =   375
      Left            =   5880
      TabIndex        =   26
      Top             =   188
      Width           =   1095
   End
   Begin VB.CommandButton cmdEditChapter 
      Caption         =   "修改章名"
      Height          =   375
      Left            =   7160
      TabIndex        =   25
      Top             =   188
      Width           =   1095
   End
   Begin VB.CommandButton cmdDeleteChapter 
      Caption         =   "删除本章"
      Height          =   375
      Left            =   8435
      TabIndex        =   24
      Top             =   188
      Width           =   1095
   End
   Begin VB.Frame fraEditTest 
      Caption         =   "编辑试题"
      Height          =   1845
      Left            =   8235
      TabIndex        =   19
      Top             =   750
      Width           =   1320
      Begin VB.CommandButton cmdEdit 
         Caption         =   "修改本题"
         Height          =   315
         Left            =   135
         TabIndex        =   23
         Top             =   240
         Width           =   1095
      End
      Begin VB.CommandButton cmdDelete 
         Caption         =   "删除本题"
         Height          =   315
         Left            =   135
         TabIndex        =   22
         Top             =   630
         Width           =   1095
      End
      Begin VB.CommandButton cmdAdd 
         Caption         =   "增加新题"
         Height          =   315
         Left            =   135
         TabIndex        =   21
         Top             =   1080
         Width           =   1095
      End
      Begin VB.CommandButton cmdSave 
         Caption         =   "保存本题"
         Enabled         =   0   'False
         Height          =   315
         Left            =   120
         TabIndex        =   20
         Top             =   1410
         Width           =   1095
      End
   End
   Begin VB.Frame fraEditPic 
      Caption         =   "编辑图片"
      Enabled         =   0   'False
      Height          =   1020
      Left            =   8235
      TabIndex        =   16
      Top             =   2850
      Width           =   1320
      Begin VB.CommandButton cmdDeletePic 
         Caption         =   "删除图片"
         Height          =   315
         Left            =   135
         TabIndex        =   18
         Top             =   592
         Width           =   1095
      End
      Begin VB.CommandButton cmdAddPic 
         Caption         =   "添加图片"
         Height          =   315
         Left            =   135
         TabIndex        =   17
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.Frame fraChangeRecord 
      Caption         =   "切换试题"
      Height          =   1785
      Left            =   8250
      TabIndex        =   11
      Top             =   4155
      Width           =   1335
      Begin VB.CommandButton cmdMoveLast 
         Caption         =   "最后题"
         Height          =   315
         Left            =   120
         TabIndex        =   15
         Top             =   1350
         Width           =   1095
      End
      Begin VB.CommandButton cmdMoveNaext 
         Caption         =   "下一题"
         Height          =   315
         Left            =   120
         TabIndex        =   14
         Top             =   960
         Width           =   1095
      End
      Begin VB.CommandButton cmdMovePre 
         Caption         =   "上一题"
         Height          =   315
         Left            =   120
         TabIndex        =   13
         Top             =   600
         Width           =   1095
      End
      Begin VB.CommandButton cmdMoveFirst 
         Caption         =   "第一题"
         Height          =   315
         Left            =   120
         TabIndex        =   12
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.CommandButton cmdExit 
      Cancel          =   -1  'True
      Caption         =   "关闭"
      Height          =   315
      Left            =   8280
      TabIndex        =   10
      Top             =   6240
      Width           =   1200
   End
   Begin VB.Frame fraLevel 
      Caption         =   "难度"
      Enabled         =   0   'False
      Height          =   525
      Left            =   360
      TabIndex        =   6
      Top             =   6019
      Width           =   2490
      Begin VB.OptionButton optLevel 
         Caption         =   "容易"
         Height          =   285
         Index           =   2
         Left            =   1680
         TabIndex        =   9
         Top             =   203
         Width           =   675
      End
      Begin VB.OptionButton optLevel 
         Caption         =   "一般"
         Height          =   195
         Index           =   1
         Left            =   855
         TabIndex        =   8
         Top             =   248
         Width           =   690
      End
      Begin VB.OptionButton optLevel 
         Caption         =   "难"
         Height          =   240
         Index           =   0
         Left            =   285
         TabIndex        =   7
         Top             =   225
         Width           =   615
      End
   End
   Begin VB.Frame fraAnswer 
      Caption         =   "答案"
      Enabled         =   0   'False
      Height          =   1695
      Left            =   360
      TabIndex        =   5
      Top             =   4245
      Width           =   7755
      Begin VB.TextBox txtAnswer 
         Height          =   495
         Index           =   1
         Left            =   1080
         TabIndex        =   29
         Top             =   960
         Width           =   6495
      End
      Begin VB.TextBox txtAnswer 
         Height          =   495
         Index           =   0
         Left            =   1080
         TabIndex        =   28
         Top             =   240
         Width           =   6495
      End
      Begin VB.Label Label3 
         Caption         =   "空2答案"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   120
         TabIndex        =   31
         Top             =   1080
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "空1答案"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   30
         Top             =   360
         Width           =   855
      End
   End
   Begin VB.TextBox txtNews 
      Height          =   420
      Left            =   3015
      Locked          =   -1  'True
      TabIndex        =   4
      Top             =   6120
      Width           =   5115
   End
   Begin VB.TextBox txtContent 
      Height          =   3375
      Left            =   360
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   3
      Top             =   750
      Width           =   3105
   End
   Begin VB.Frame Frame1 
      Caption         =   "图片"
      Height          =   3375
      Left            =   3600
      TabIndex        =   1
      Top             =   750
      Width           =   4530
      Begin VB.PictureBox Picture1 
         Height          =   2985
         Left            =   120
         ScaleHeight     =   2925
         ScaleWidth      =   4140
         TabIndex        =   2
         Top             =   240
         Width           =   4200
         Begin MSComDlg.CommonDialog CommonDialog1 
            Left            =   840
            Top             =   1800
            _ExtentX        =   847
            _ExtentY        =   847
            _Version        =   393216
         End
      End
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "选择章节:"
      Height          =   180
      Left            =   414
      TabIndex        =   0
      Top             =   285
      Width           =   900
   End
End
Attribute VB_Name = "SpaceEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim conn As Connection, objRs As Recordset, objRsChapter As Recordset
Dim isAdding As Boolean, picName As String
Private Sub cmbChapter_Click()
    If cmbChapter <> "" Then
        objRs.Filter = "章节=" & cmbChapter.ItemData(cmbChapter.ListIndex)
        If objRs.RecordCount > 0 Then objRs.MoveFirst
        Show_Data
    Else
        objRs.Filter = "章节=-99999"
        Show_Data
    End If
End Sub


Private Sub cmdAdd_Click()
    Dim i%
    If cmbChapter = "" Then Exit Sub
    isAdding = True
    fraChangeRecord.Enabled = False
    fraEditPic.Enabled = True
    cmdEdit.Enabled = False
    cmdDelete.Enabled = False
    cmdAdd.Enabled = False
    cmdSave.Enabled = True
    cmbChapter.Enabled = False
    cmdAddChapter.Enabled = False
    cmdEditChapter.Enabled = False
    cmdDeleteChapter.Enabled = False
    fraAnswer.Enabled = True
    fraLevel.Enabled = True
    txtContent.Locked = False

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -