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

📄 颜色选择题.frm

📁 VB源码,是初学者的福因.让你很快掌握VB编程
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3660
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3660
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   3720
      TabIndex        =   11
      Text            =   "Text2"
      Top             =   3120
      Width           =   495
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   1440
      TabIndex        =   10
      Text            =   "Text1"
      Top             =   3120
      Width           =   495
   End
   Begin VB.Frame Frame2 
      Caption         =   "第2题"
      Height          =   2415
      Left            =   2280
      TabIndex        =   6
      Top             =   480
      Width           =   2055
      Begin VB.OptionButton Option8 
         Caption         =   "D、绿色"
         Height          =   255
         Left            =   240
         TabIndex        =   15
         Top             =   1800
         Width           =   1215
      End
      Begin VB.OptionButton Option7 
         Caption         =   "C、蓝色"
         Height          =   255
         Left            =   240
         TabIndex        =   14
         Top             =   1440
         Width           =   1095
      End
      Begin VB.OptionButton Option6 
         Caption         =   "B、黄色"
         Height          =   180
         Left            =   240
         TabIndex        =   13
         Top             =   1080
         Width           =   1095
      End
      Begin VB.OptionButton Option5 
         Caption         =   "A、红色"
         Height          =   255
         Left            =   240
         TabIndex        =   12
         Top             =   720
         Width           =   1095
      End
      Begin VB.Label Label2 
         Caption         =   "戴上绿色墨镜后,眼睛对哪种颜色最敏感?"
         Height          =   495
         Left            =   120
         TabIndex        =   7
         Top             =   240
         Width           =   1815
      End
   End
   Begin VB.OptionButton Option4 
      Caption         =   "D、绿色"
      Height          =   375
      Left            =   480
      TabIndex        =   4
      Top             =   2280
      Width           =   1215
   End
   Begin VB.OptionButton Option3 
      Caption         =   "C、蓝色"
      Height          =   375
      Left            =   480
      TabIndex        =   3
      Top             =   1920
      Width           =   1215
   End
   Begin VB.OptionButton Option2 
      Caption         =   "B、黄色"
      Height          =   375
      Left            =   480
      TabIndex        =   2
      Top             =   1560
      Width           =   1215
   End
   Begin VB.OptionButton Option1 
      Caption         =   "A、红色"
      Height          =   375
      Left            =   480
      TabIndex        =   1
      Top             =   1200
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "第1题"
      Height          =   2415
      Left            =   240
      TabIndex        =   0
      Top             =   480
      Width           =   1695
      Begin VB.Label Label1 
         Caption         =   "眼睛对哪种颜色最敏感?"
         Height          =   495
         Left            =   120
         TabIndex        =   5
         Top             =   240
         Width           =   1335
      End
   End
   Begin VB.Label Label4 
      Caption         =   "Label4"
      Height          =   375
      Left            =   2400
      TabIndex        =   9
      Top             =   3120
      Width           =   1215
   End
   Begin VB.Label Label3 
      Caption         =   "Label3"
      Height          =   375
      Left            =   240
      TabIndex        =   8
      Top             =   3120
      Width           =   1215
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
  Label3.Caption = "第1题答案:"
  Label4.Caption = "第2题答案:"
  Text1.Text = ""
  Text2.Text = ""
End Sub

Private Sub Option1_Click()
  Text1.Text = "A"
End Sub
Private Sub Option2_Click()
  Text1.Text = "B"
End Sub
Private Sub Option3_Click()
  Text1.Text = "C"
End Sub
Private Sub Option4_Click()
  Text1.Text = "D"
End Sub

Private Sub Option5_Click()
  Text2.Text = "A"
End Sub
Private Sub Option6_Click()
  Text2.Text = "B"
End Sub
Private Sub Option7_Click()
  Text2.Text = "C"
End Sub
Private Sub Option8_Click()
  Text2.Text = "D"
End Sub

⌨️ 快捷键说明

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