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

📄 frmcheck.frm

📁 这是一个可以用于毕业设计的计算机等级考试模拟系统。管理员能够从题库中抽题来完成命题等工作。非常实用。
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmCheck 
   BackColor       =   &H00C0C0C0&
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   9525
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   8460
   LinkTopic       =   "Form1"
   ScaleHeight     =   9525
   ScaleWidth      =   8460
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame FrameAnswer 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      ForeColor       =   &H80000008&
      Height          =   1575
      Left            =   120
      TabIndex        =   12
      Top             =   7200
      Width           =   7455
      Begin VB.OptionButton OptChoice 
         Caption         =   "Option1"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   16
         Top             =   240
         Width           =   3375
      End
      Begin VB.OptionButton OptChoice 
         Caption         =   "Option2"
         Height          =   255
         Index           =   2
         Left            =   3600
         TabIndex        =   15
         Top             =   240
         Width           =   3495
      End
      Begin VB.OptionButton OptChoice 
         Caption         =   "Option3"
         Height          =   255
         Index           =   3
         Left            =   120
         TabIndex        =   14
         Top             =   960
         Width           =   3375
      End
      Begin VB.OptionButton OptChoice 
         Caption         =   "Option4"
         Height          =   255
         Index           =   4
         Left            =   3600
         TabIndex        =   13
         Top             =   960
         Width           =   3495
      End
   End
   Begin VB.CommandButton CmdOK 
      Caption         =   "确定"
      Height          =   375
      Left            =   6240
      TabIndex        =   10
      Top             =   9000
      Width           =   855
   End
   Begin VB.TextBox txtCheck 
      Appearance      =   0  'Flat
      BeginProperty Font 
         Name            =   "方正舒体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1095
      Left            =   120
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   9
      Top             =   5280
      Width           =   7335
   End
   Begin VB.TextBox txtAnswer 
      Appearance      =   0  'Flat
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1335
      Left            =   120
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   5
      Top             =   3360
      Width           =   7335
   End
   Begin VB.CommandButton CmdLast 
      Caption         =   ">|"
      Height          =   375
      Left            =   2280
      TabIndex        =   4
      Top             =   9000
      Width           =   735
   End
   Begin VB.CommandButton CmdNext 
      Caption         =   ">"
      Height          =   375
      Left            =   1560
      TabIndex        =   3
      Top             =   9000
      Width           =   735
   End
   Begin VB.CommandButton CmdPrev 
      Caption         =   "<"
      Height          =   375
      Left            =   840
      TabIndex        =   2
      Top             =   9000
      Width           =   735
   End
   Begin VB.CommandButton CmdFirst 
      Caption         =   "|<"
      Height          =   375
      Left            =   120
      TabIndex        =   1
      Top             =   9000
      Width           =   735
   End
   Begin VB.TextBox txtQuestion 
      Appearance      =   0  'Flat
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2175
      Left            =   120
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      Top             =   600
      Width           =   7335
   End
   Begin VB.Label LblChoice 
      Caption         =   "单选题选项"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   120
      TabIndex        =   11
      Top             =   6720
      Width           =   2775
   End
   Begin VB.Label lblCheck 
      Caption         =   "考生答案"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   120
      TabIndex        =   8
      Top             =   4800
      Width           =   2775
   End
   Begin VB.Label lblA 
      Caption         =   "参考答案"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   120
      TabIndex        =   7
      Top             =   2880
      Width           =   2775
   End
   Begin VB.Label lblQ 
      Caption         =   "题目"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   120
      TabIndex        =   6
      Top             =   120
      Width           =   2775
   End
End
Attribute VB_Name = "frmCheck"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim QSerial As Long
Dim iCount As Long
Private Sub View()
    Dim TType As QuestionType
    Dim S() As String
    TType = QPaper.GetType(iCount)
    QSerial = iCount
    'QSerial = QPaper.GetQSerial(iCount)
    txtQuestion.Text = QPaper.GetQuestion(QSerial)
    txtAnswer.Text = QPaper.GetQAnswer(QSerial)
    txtCheck.Text = QPaper.GetUserAnswer(QSerial)
    If TType = filling Then
    FrameAnswer.Visible = False
    LblChoice.Visible = False
    Else
    FrameAnswer.Visible = True
    LblChoice.Visible = True
    S = Split(QPaper.GetChoice(QSerial), ",")
    'DataEnv.rsQstPaper.Open
    'DataEnv.rsQstPaper.Filter = "PaperSerial ='" & QSerial & "'And PaperID='" & Paper & "'"
       For i = 1 To 4
                OptChoice(i).Visible = True
                OptChoice(i).Caption = S(i - 1)
       Next
    End If
End Sub
Private Sub CmdFirst_Click()
    iCount = 1
    View
End Sub

Private Sub CmdLast_Click()
    iCount = QPaper.QuestionNum
    View
End Sub

Private Sub CmdNext_Click()
    If iCount < QPaper.QuestionNum Then
        iCount = iCount + 1
        View
    End If
End Sub

Private Sub CmdOK_Click()
    Unload Me
End Sub

Private Sub CmdPrev_Click()
    If iCount > 1 Then
        iCount = iCount - 1
        View
    End If
End Sub

Private Sub Form_Load()
    Dim Q As Long
    Q = QPaper.QuestionNum
    iCount = 1
    View
End Sub

⌨️ 快捷键说明

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