VERSION 5.00
Begin VB.Form FrmVBzhsh3 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "VB知识自我测试"
   ClientHeight    =   6120
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   7365
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6120
   ScaleWidth      =   7365
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame3 
      Caption         =   "第3题 设置窗体上多个控件的对齐方式、统一尺寸等，可从哪个主菜单下打开命令："
      Height          =   855
      Left            =   120
      TabIndex        =   19
      Top             =   3360
      Width           =   7095
      Begin VB.OptionButton Option3 
         Caption         =   "调试"
         Height          =   375
         Index           =   3
         Left            =   5160
         TabIndex        =   23
         Top             =   360
         Width           =   1095
      End
      Begin VB.OptionButton Option3 
         Caption         =   "格式"
         Height          =   375
         Index           =   2
         Left            =   3600
         TabIndex        =   22
         Top             =   360
         Width           =   1335
      End
      Begin VB.OptionButton Option3 
         Caption         =   "编辑"
         Height          =   375
         Index           =   1
         Left            =   1920
         TabIndex        =   21
         Top             =   360
         Width           =   1215
      End
      Begin VB.OptionButton Option3 
         Caption         =   "文件"
         Height          =   375
         Index           =   0
         Left            =   240
         TabIndex        =   20
         Top             =   360
         Width           =   1335
      End
   End
   Begin VB.CommandButton Command3 
      Caption         =   "取消"
      Height          =   375
      Left            =   5040
      TabIndex        =   18
      Top             =   5400
      Width           =   1575
   End
   Begin VB.CommandButton Command2 
      Caption         =   "重作"
      Height          =   375
      Left            =   2640
      TabIndex        =   17
      Top             =   5400
      Width           =   1695
   End
   Begin VB.CommandButton Command1 
      Caption         =   "提交"
      Height          =   375
      Left            =   360
      TabIndex        =   16
      Top             =   5400
      Width           =   1575
   End
   Begin VB.PictureBox Picture1 
      BackColor       =   &H00FFFFFF&
      Height          =   735
      Left            =   120
      ScaleHeight     =   675
      ScaleWidth      =   7035
      TabIndex        =   15
      Top             =   4440
      Width           =   7095
   End
   Begin VB.Frame Frame2 
      Caption         =   "第2题 表示一个单选按钮没被选中，应设置其哪一属性值为False："
      Height          =   975
      Left            =   120
      TabIndex        =   10
      Top             =   2040
      Width           =   7095
      Begin VB.OptionButton Option2 
         Caption         =   "Cancel"
         Height          =   375
         Index           =   3
         Left            =   5160
         TabIndex        =   14
         Top             =   360
         Width           =   1575
      End
      Begin VB.OptionButton Option2 
         Caption         =   "Default"
         Height          =   375
         Index           =   2
         Left            =   3600
         TabIndex        =   13
         Top             =   360
         Width           =   1575
      End
      Begin VB.OptionButton Option2 
         Caption         =   "Enabled"
         Height          =   375
         Index           =   1
         Left            =   1920
         TabIndex        =   12
         Top             =   360
         Width           =   1455
      End
      Begin VB.OptionButton Option2 
         Caption         =   "Value"
         Height          =   375
         Index           =   0
         Left            =   240
         TabIndex        =   11
         Top             =   360
         Width           =   1215
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "第1题 以下选项中，不属于单选按钮属性的是："
      Height          =   975
      Left            =   120
      TabIndex        =   5
      Top             =   840
      Width           =   7095
      Begin VB.OptionButton Option1 
         Caption         =   "Min "
         Height          =   375
         Index           =   3
         Left            =   5160
         TabIndex        =   9
         Top             =   360
         Width           =   1575
      End
      Begin VB.OptionButton Option1 
         Caption         =   "Name"
         Height          =   375
         Index           =   2
         Left            =   3600
         TabIndex        =   8
         Top             =   360
         Width           =   1575
      End
      Begin VB.OptionButton Option1 
         Caption         =   "Caption"
         Height          =   375
         Index           =   1
         Left            =   1920
         TabIndex        =   7
         Top             =   360
         Width           =   1335
      End
      Begin VB.OptionButton Option1 
         Caption         =   "Enabled"
         Height          =   375
         Index           =   0
         Left            =   240
         TabIndex        =   6
         Top             =   360
         Width           =   1455
      End
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   5400
      TabIndex        =   3
      Text            =   "张三"
      Top             =   240
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   3360
      TabIndex        =   1
      Text            =   "初二（  ）"
      Top             =   240
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "姓名"
      Height          =   255
      Left            =   4920
      TabIndex        =   4
      Top             =   240
      Width           =   735
   End
   Begin VB.Label Label2 
      Caption         =   "班级"
      Height          =   255
      Left            =   2880
      TabIndex        =   2
      Top             =   240
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "第3课 精彩比赛"
      BeginProperty Font 
         Name            =   "黑体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   2175
   End
End
Attribute VB_Name = "FrmVBzhsh3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim k$
Private Sub Form_Load()
  k = ""
End Sub
Rem 提交
Private Sub Command1_Click()
  Rem 第1题
  If Option1(3).Value = True Then
     k = k + "1.正确" + Space(4)
  Else
     k = k + "1.错误" + Space(4)
  End If
  Rem 第2题
  If Option2(0).Value = True Then
     k = k + "2.正确" + Space(4)
  Else
     k = k + "2.错误" + Space(4)
  End If
  Rem 第3题
  If Option3(2).Value = True Then
     k = k + "3.正确" + Space(4)
  Else
     k = k + "3.错误" + Space(4)
  End If
  k = Text1.Text + Space(4) + Text2.Text + Space(4) + k
  Picture1.Cls
  Picture1.Print
  Picture1.Print Space(4); k
  k = ""
End Sub
Rem 重作
Private Sub Command2_Click()
   Picture1.Cls
   For i = 0 To 3
     Option1(i).Value = False
     Option2(i).Value = False
     Option3(i).Value = False
   Next i
   k = ""
   Text1.SetFocus
End Sub
Private Sub Command3_Click()
   Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
   Unload Me
   Frmsys.Show
End Sub

