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

📄 例10.1.frm

📁 一本学习Visual Basic编程的好书
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "结束"
      Height          =   375
      Left            =   2640
      TabIndex        =   11
      Top             =   2640
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   720
      TabIndex        =   10
      Top             =   2640
      Width           =   1215
   End
   Begin VB.Frame Frame3 
      Caption         =   "颜色"
      Height          =   1455
      Left            =   3240
      TabIndex        =   3
      Top             =   960
      Width           =   1335
      Begin VB.OptionButton Option6 
         Caption         =   "红色"
         Height          =   180
         Left            =   120
         TabIndex        =   9
         Top             =   1080
         Width           =   1095
      End
      Begin VB.OptionButton Option5 
         Caption         =   "蓝色"
         Height          =   255
         Left            =   120
         TabIndex        =   8
         Top             =   480
         Width           =   1095
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "字号"
      Height          =   1455
      Left            =   1680
      TabIndex        =   2
      Top             =   960
      Width           =   1335
      Begin VB.OptionButton Option4 
         Caption         =   "20号"
         Height          =   180
         Left            =   240
         TabIndex        =   7
         Top             =   1080
         Width           =   1095
      End
      Begin VB.OptionButton Option3 
         Caption         =   "16号"
         Height          =   255
         Left            =   240
         TabIndex        =   6
         Top             =   480
         Width           =   975
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "字体"
      Height          =   1455
      Left            =   120
      TabIndex        =   1
      Top             =   960
      Width           =   1335
      Begin VB.OptionButton Option2 
         Caption         =   "幼圆"
         Height          =   180
         Left            =   120
         TabIndex        =   5
         Top             =   960
         Width           =   975
      End
      Begin VB.OptionButton Option1 
         Caption         =   "宋体"
         Height          =   180
         Left            =   120
         TabIndex        =   4
         Top             =   480
         Width           =   1095
      End
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   840
      TabIndex        =   0
      Text            =   "框架控件的使用"
      Top             =   120
      Width           =   3015
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    If Option1.Value Then
         Text1.FontName = "宋体"
    Else
         Text1.FontName = "幼圆"
    End If
    If Option3.Value Then
         Text1.FontSize = 16
    Else
         Text1.FontSize = 20
    End If
    If Option5.Value Then
         Text1.ForeColor = RGB(0, 0, 255)
    Else
         Text1.ForeColor = RGB(255, 0, 0)
    End If
End Sub
Private Sub Command2_Click()
    End
End Sub
Private Sub Form_Load()
    Option1.Value = True
    Option3.Value = True
    Option5.Value = True
    Text1.FontName = "宋体"
    Text1.FontSize = 16
    Text1.ForeColor = RGB(0, 0, 255)
End Sub

⌨️ 快捷键说明

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