VERSION 5.00
Begin VB.Form FrmQuestion 
   Caption         =   "奥运知多少"
   ClientHeight    =   7290
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6015
   LinkTopic       =   "Form1"
   ScaleHeight     =   7290
   ScaleWidth      =   6015
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame FraResult 
      Caption         =   "答题结果"
      Height          =   855
      Left            =   240
      TabIndex        =   21
      Top             =   6360
      Visible         =   0   'False
      Width           =   5535
      Begin VB.Label LblR2 
         Caption         =   "2."
         Height          =   375
         Left            =   4320
         TabIndex        =   25
         Top             =   360
         Width           =   855
      End
      Begin VB.Label LblR1 
         Caption         =   "1."
         Height          =   375
         Left            =   3120
         TabIndex        =   24
         Top             =   360
         Width           =   855
      End
      Begin VB.Label LblRN 
         Caption         =   "姓名"
         Height          =   375
         Left            =   1560
         TabIndex        =   23
         Top             =   360
         Width           =   1215
      End
      Begin VB.Label LblRC 
         Caption         =   "班级"
         Height          =   375
         Left            =   240
         TabIndex        =   22
         Top             =   360
         Width           =   975
      End
   End
   Begin VB.CommandButton CmdRecast 
      Caption         =   "重做"
      Height          =   375
      Left            =   2400
      TabIndex        =   20
      Top             =   5760
      Width           =   1095
   End
   Begin VB.CommandButton CmdOk 
      Caption         =   "提交"
      Height          =   375
      Left            =   840
      TabIndex        =   19
      Top             =   5760
      Width           =   1095
   End
   Begin VB.CommandButton CmdExit 
      Caption         =   "退出"
      Height          =   375
      Left            =   3960
      TabIndex        =   18
      Top             =   5760
      Width           =   1095
   End
   Begin VB.Frame FraDuoxuan 
      Caption         =   "多选"
      Height          =   1815
      Left            =   240
      TabIndex        =   10
      Top             =   3720
      Width           =   5535
      Begin VB.CheckBox Chk1 
         Caption         =   "盼盼"
         Height          =   180
         Index           =   5
         Left            =   3120
         TabIndex        =   17
         Top             =   1320
         Width           =   975
      End
      Begin VB.CheckBox Chk1 
         Caption         =   "妮妮"
         Height          =   180
         Index           =   4
         Left            =   1680
         TabIndex        =   16
         Top             =   1320
         Width           =   975
      End
      Begin VB.CheckBox Chk1 
         Caption         =   "迎迎"
         Height          =   180
         Index           =   3
         Left            =   360
         TabIndex        =   15
         Top             =   1320
         Width           =   975
      End
      Begin VB.CheckBox Chk1 
         Caption         =   "欢欢"
         Height          =   180
         Index           =   2
         Left            =   3120
         TabIndex        =   14
         Top             =   840
         Width           =   975
      End
      Begin VB.CheckBox Chk1 
         Caption         =   "晶晶"
         Height          =   180
         Index           =   1
         Left            =   1680
         TabIndex        =   13
         Top             =   840
         Width           =   975
      End
      Begin VB.CheckBox Chk1 
         Caption         =   "贝贝"
         Height          =   180
         Index           =   0
         Left            =   360
         TabIndex        =   12
         Top             =   840
         Width           =   975
      End
      Begin VB.Label Lbl2 
         Caption         =   "2.下列哪些是2008北京奥运会的吉祥物福娃的名字？"
         Height          =   375
         Left            =   240
         TabIndex        =   11
         Top             =   360
         Width           =   4695
      End
   End
   Begin VB.Frame FraDanxuan 
      Caption         =   "单选"
      Height          =   1455
      Left            =   240
      TabIndex        =   5
      Top             =   2040
      Width           =   5535
      Begin VB.OptionButton Opt1 
         Caption         =   "美国 圣路易斯"
         Height          =   375
         Index           =   2
         Left            =   3720
         TabIndex        =   9
         Top             =   840
         Width           =   1575
      End
      Begin VB.OptionButton Opt1 
         Caption         =   "法国 巴黎"
         Height          =   375
         Index           =   1
         Left            =   2040
         TabIndex        =   8
         Top             =   840
         Width           =   1455
      End
      Begin VB.OptionButton Opt1 
         Caption         =   "希腊 雅典"
         Height          =   375
         Index           =   0
         Left            =   360
         TabIndex        =   7
         Top             =   840
         Width           =   1455
      End
      Begin VB.Label Lbl1 
         Caption         =   "1.第一届奥林匹克运动会是在什么地方举行的？"
         Height          =   375
         Left            =   360
         TabIndex        =   6
         Top             =   360
         Width           =   3975
      End
   End
   Begin VB.TextBox TxtName 
      Height          =   375
      Left            =   3840
      TabIndex        =   4
      Top             =   1320
      Width           =   975
   End
   Begin VB.TextBox TxtClass 
      Height          =   375
      Left            =   1320
      TabIndex        =   2
      Top             =   1320
      Width           =   975
   End
   Begin VB.Label LblName 
      Caption         =   "姓名"
      Height          =   255
      Left            =   3120
      TabIndex        =   3
      Top             =   1440
      Width           =   615
   End
   Begin VB.Label LblClass 
      Caption         =   "班级"
      Height          =   255
      Left            =   600
      TabIndex        =   1
      Top             =   1440
      Width           =   615
   End
   Begin VB.Label LblDaJuan 
      Caption         =   "奥运知识答卷"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   18
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1560
      TabIndex        =   0
      Top             =   360
      Width           =   2415
   End
End
Attribute VB_Name = "FrmQuestion"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Chk1_Click(Index As Integer)
  FraResult.Visible = False       '使答题结果中的内容不可见
  '只有当第六个多选按钮不被选中而其它五个多选按钮都被选中时，答案正确
  Select Case Chk1(0).Value And Chk1(1).Value And Chk1(2).Value And _
     Chk1(3).Value And Chk1(4).Value And Not Chk1(5).Value
    Case 0
      LblR2.Caption = "2.错！"
    Case 1
      LblR2.Caption = "2.对！"
  End Select
End Sub

Private Sub CmdExit_Click()
  End
End Sub

Private Sub CmdOk_Click()
  FraResult.Visible = True        '使答题结果中的内容可见
  LblRC.Caption = TxtClass.Text   '显示文本框班级中的内容
  LblRN.Caption = TxtName.Text    '显示文本框姓名中的内容
End Sub

Private Sub CmdRecast_Click()
  FraResult.Visible = False        '使答题结果中的内容不可见
  TxtClass.Text = ""               '清空文本框
  TxtName.Text = ""
  
  Opt1(0).Value = False
  Opt1(1).Value = False
  Opt1(2).Value = False
  
  Chk1(0).Value = 0
  Chk1(1).Value = 0
  Chk1(2).Value = 0
  Chk1(3).Value = 0
  Chk1(4).Value = 0
  Chk1(5).Value = 0
End Sub


Private Sub Opt1_Click(Index As Integer)
  FraResult.Visible = False        '使答题结果中的内容不可见
  Select Case Index
    Case 0
      LblR1.Caption = "1.对！"     '当用户选择第一个选项时答案正确
    Case 2                         '当用户选择第三个选项时答案错误
      LblR1.Caption = "1.错！"
    Case 1
      LblR1.Caption = "1.错！"     '当用户选择第二个选项时答案错误
  End Select
End Sub
