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

📄 frmoperation.frm

📁 网上收集的一个考试管理系统。带论文的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmOperation 
   BackColor       =   &H00808080&
   BorderStyle     =   0  'None
   Caption         =   "操作题"
   ClientHeight    =   9030
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   10110
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   9030
   ScaleWidth      =   10110
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command1 
      Caption         =   "关闭"
      Height          =   330
      Left            =   7965
      TabIndex        =   7
      Top             =   7785
      Width           =   1185
   End
   Begin VB.CommandButton Command2 
      Caption         =   "第一题"
      Height          =   330
      Index           =   0
      Left            =   2835
      TabIndex        =   6
      Top             =   7785
      Width           =   1140
   End
   Begin VB.CommandButton Command2 
      Caption         =   "上一题"
      Height          =   330
      Index           =   1
      Left            =   3960
      TabIndex        =   5
      Top             =   7785
      Width           =   1140
   End
   Begin VB.CommandButton Command2 
      Caption         =   "下一题"
      Height          =   330
      Index           =   2
      Left            =   5085
      TabIndex        =   4
      Top             =   7785
      Width           =   1140
   End
   Begin VB.CommandButton Command2 
      Caption         =   "最后"
      Height          =   330
      Index           =   3
      Left            =   6210
      TabIndex        =   3
      Top             =   7785
      Width           =   1140
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "F:\My Documents\VB\考试管理系统\examktl.dll"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   7200
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "OperationExercise"
      Top             =   8550
      Visible         =   0   'False
      Width           =   2085
   End
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      BackColor       =   &H00808080&
      ForeColor       =   &H0080FFFF&
      Height          =   6630
      Left            =   180
      Locked          =   -1  'True
      MousePointer    =   99  'Custom
      MultiLine       =   -1  'True
      ScrollBars      =   3  'Both
      TabIndex        =   0
      Top             =   810
      Width           =   9780
   End
   Begin VB.Shape Shape2 
      BorderColor     =   &H00C0C0FF&
      Height          =   285
      Left            =   9720
      Top             =   45
      Width           =   330
   End
   Begin VB.Label Label4 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "×"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H008080FF&
      Height          =   240
      Left            =   9765
      MouseIcon       =   "FrmOperation.frx":0000
      TabIndex        =   2
      Top             =   90
      Width           =   240
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "操作题"
      Height          =   240
      Left            =   4095
      TabIndex        =   1
      Top             =   90
      Width           =   1725
   End
   Begin VB.Line Line3 
      BorderColor     =   &H0080FFFF&
      X1              =   10080
      X2              =   10080
      Y1              =   9000
      Y2              =   360
   End
   Begin VB.Line Line2 
      BorderColor     =   &H0080FFFF&
      X1              =   10080
      X2              =   45
      Y1              =   9000
      Y2              =   9000
   End
   Begin VB.Line Line1 
      BorderColor     =   &H0000FFFF&
      X1              =   0
      X2              =   0
      Y1              =   315
      Y2              =   9000
   End
   Begin VB.Shape Shape1 
      BackColor       =   &H0000FFFF&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H0000FFFF&
      Height          =   330
      Left            =   0
      Top             =   0
      Width           =   10095
   End
End
Attribute VB_Name = "FrmOperation"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim CurrentT As Integer
Dim ResultNum As Integer
Public TWForm As New TransWindow
Private Sub Command1_Click()
TWForm.UnLoadForm
Me.Hide
End Sub

Private Sub Command2_Click(Index As Integer)
Select Case Index
       Case 0
             CurrentT = 0
         
       Case 1
              CurrentT = CurrentT - 1
             If CurrentT < 0 Then: CurrentT = 0
       Case 2
              CurrentT = CurrentT + 1
             If CurrentT >= OperationSubjectCount Then: CurrentT = OperationSubjectCount - 1
       Case 3
             CurrentT = OperationSubjectCount - 1
End Select
ViewSubject CurrentT
End Sub

Private Sub Form_Activate()
 ViewSubject CurrentT
End Sub

Private Sub Form_Load()
TWForm.SetForm Me
Data1.DatabaseName = App.Path & "\examktl.dll"
CurrentT = 0
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
TWForm.UnLoadForm
Set TWForm = Nothing
End Sub

Private Sub Label4_Click()
Me.WindowState = 1
End Sub


Sub ViewSubject(SubjectIndex As Integer)
On Error Resume Next

Text1.Text = "第 " & SubjectIndex + 1 & " 题" & vbCrLf

SubjectMove OperationSubject(SubjectIndex)

  
    Text1.Text = Text1.Text & Data1.Recordset.Fields(0)


End Sub

Sub SubjectMove(SubjectIndexR As Long)
Data1.Refresh
Data1.Recordset.MoveFirst
Data1.Recordset.Move SubjectIndexR
End Sub


⌨️ 快捷键说明

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