VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Form1 
   Caption         =   "字体演示"
   ClientHeight    =   2970
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4545
   LinkTopic       =   "Form1"
   ScaleHeight     =   2970
   ScaleWidth      =   4545
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "设置字体"
      Height          =   480
      Left            =   1455
      TabIndex        =   1
      Top             =   2190
      Width           =   1155
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   960
      Top             =   1650
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "字体演示区"
      Height          =   885
      Left            =   795
      TabIndex        =   0
      Top             =   345
      Width           =   2835
   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()
    CommonDialog1.Flags = cdlCFBoth Or cdlCFEffects         '设置标志位
    CommonDialog1.ShowFont                                  '打开“字体”对话框
    Label1.Font = CommonDialog1.FontName                    '字体
    Label1.ForeColor = CommonDialog1.Color                  '文字颜色
    Label1.FontBold = CommonDialog1.FontBold                '加粗
    Label1.FontItalic = CommonDialog1.FontItalic            '斜体
    Label1.FontSize = CommonDialog1.FontSize                '文字大小
    Label1.FontStrikethru = CommonDialog1.FontStrikethru    '删除线
    Label1.FontUnderline = CommonDialog1.FontUnderline      '下划线
End Sub
