VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "单选钮和检查框示例"
   ClientHeight    =   1950
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4620
   LinkTopic       =   "Form1"
   ScaleHeight     =   1950
   ScaleWidth      =   4620
   StartUpPosition =   3  '窗口缺省
   Begin VB.CheckBox Check2 
      Caption         =   "斜体"
      Height          =   375
      Left            =   1560
      TabIndex        =   6
      Top             =   600
      Width           =   975
   End
   Begin VB.CheckBox Check1 
      Caption         =   "粗体"
      Height          =   375
      Left            =   1560
      TabIndex        =   5
      Top             =   240
      Width           =   855
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1080
      TabIndex        =   4
      Text            =   "VB程序设计"
      Top             =   1200
      Width           =   2535
   End
   Begin VB.CheckBox Check4 
      Caption         =   "下划线"
      Height          =   375
      Left            =   2520
      TabIndex        =   3
      Top             =   600
      Width           =   975
   End
   Begin VB.CheckBox Check3 
      Caption         =   "删除线"
      Height          =   375
      Left            =   2520
      TabIndex        =   2
      Top             =   240
      Width           =   975
   End
   Begin VB.OptionButton Option2 
      Caption         =   "黑体"
      Height          =   495
      Left            =   240
      TabIndex        =   1
      Top             =   600
      Width           =   1215
   End
   Begin VB.OptionButton Option1 
      Caption         =   "宋体"
      Height          =   495
      Left            =   240
      TabIndex        =   0
      Top             =   120
      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 Option1_Click()
Text1.Font.Name = "宋体"
End Sub
Sub Option2_Click()
Text1.Font.Name = "黑体"
End Sub
Sub Check1_Click()
Text1.Font.Bold = Not Text1.Font.Bold
End Sub
Sub Check2_Click()
Text1.Font.Italic = Not Text1.Font.Italic
End Sub
Sub Check3_Click()
Text1.Font.Strikethrough = Not Text1.Font.Strikethrough
End Sub
Sub Check4_Click()
Text1.Font.Underline = Not Text1.Font.Underline
End Sub

  

