frmxt.frm

来自「VB6.0应用例题」· FRM 代码 · 共 222 行

FRM
222
字号
VERSION 5.00
Begin VB.Form Frmxt 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "试题选择"
   ClientHeight    =   5055
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5475
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   12
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmxt.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5055
   ScaleWidth      =   5475
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton cmdml 
      Caption         =   "退出"
      Height          =   500
      Index           =   2
      Left            =   3480
      TabIndex        =   10
      Top             =   4440
      Width           =   1200
   End
   Begin VB.TextBox Txtsm 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   0  'None
      ForeColor       =   &H000000FF&
      Height          =   495
      Left            =   840
      TabIndex        =   8
      Top             =   3720
      Width           =   3615
   End
   Begin VB.CommandButton cmdml 
      Caption         =   "继续"
      Height          =   500
      Index           =   1
      Left            =   2040
      TabIndex        =   7
      Top             =   4440
      Width           =   1200
   End
   Begin VB.CommandButton cmdml 
      Caption         =   "试题生成"
      Height          =   500
      Index           =   0
      Left            =   600
      TabIndex        =   5
      Top             =   4440
      Width           =   1200
   End
   Begin VB.Frame frm 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2895
      Left            =   360
      TabIndex        =   0
      Top             =   720
      Width           =   4695
      Begin VB.OptionButton optml 
         Caption         =   "网络基础知识"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Index           =   4
         Left            =   720
         TabIndex        =   9
         Top             =   2280
         Width           =   3500
      End
      Begin VB.OptionButton optml 
         Caption         =   "中文Excel基础知识"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Index           =   3
         Left            =   720
         TabIndex        =   4
         Top             =   1800
         Width           =   3500
      End
      Begin VB.OptionButton optml 
         Caption         =   "中文Word基础知识"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Index           =   2
         Left            =   720
         TabIndex        =   3
         Top             =   1320
         Width           =   3500
      End
      Begin VB.OptionButton optml 
         Caption         =   "中文Windows基础知识"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Index           =   1
         Left            =   720
         TabIndex        =   2
         Top             =   840
         Width           =   3500
      End
      Begin VB.OptionButton optml 
         Caption         =   "办公自动化基础知识"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Index           =   0
         Left            =   720
         TabIndex        =   1
         Top             =   360
         Width           =   3500
      End
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   "请选择试题"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   18
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   1440
      TabIndex        =   6
      Top             =   240
      Width           =   2535
   End
End
Attribute VB_Name = "Frmxt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmdml_Click(Index As Integer)
 On Error Resume Next
   If Index = 0 Then
     '-------------------------------------------------
     '删除程序所在文件夹中的考生答题文件
     '-------------------------------------------------
     Kill App.Path & "\ksda" & Trim(Str(StNum)) & ".txt"
     Frmxz.Show
     Unload Me
   ElseIf Index = 1 Then
          Frmxz.Show
          Unload Me
        Else
          End
   End If
End Sub
Private Sub Form_Load()
  TiShu(1) = 79
  TiShu(2) = 43
  TiShu(3) = 19
  TiShu(4) = 26
  TiShu(5) = 38
  CenterOnSetupForm Me
End Sub
Private Sub optml_Click(Index As Integer)
  StNum = Str(Index + 1)
End Sub

⌨️ 快捷键说明

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