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

📄 form1.frm

📁 本文件包含200个visual baisc实例
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "获取系统字体"
   ClientHeight    =   2550
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4845
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   2550
   ScaleWidth      =   4845
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   390
      Left            =   2970
      TabIndex        =   2
      Top             =   2130
      Width           =   1755
   End
   Begin VB.CommandButton Command1 
      Caption         =   "获取系统字体"
      Height          =   390
      Left            =   2970
      TabIndex        =   1
      Top             =   1605
      Width           =   1755
   End
   Begin VB.ListBox List1 
      Height          =   2220
      Left            =   75
      Sorted          =   -1  'True
      TabIndex        =   0
      Top             =   330
      Width           =   2790
   End
   Begin VB.Label Label4 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   540
      Left            =   2985
      TabIndex        =   6
      Top             =   1485
      Width           =   1650
   End
   Begin VB.Label Label3 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   480
      Left            =   2985
      TabIndex        =   5
      Top             =   930
      Width           =   1650
   End
   Begin VB.Label Label2 
      Height          =   285
      Left            =   75
      TabIndex        =   4
      Top             =   3345
      Width           =   2790
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "字体列表"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFF00&
      Height          =   285
      Left            =   660
      TabIndex        =   3
      Top             =   0
      Width           =   1365
   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 = "字体演示"
  Label4.Caption = "字体演示"
  Label3.FontSize = "10"
  Label4.FontSize = "16"
End Sub

Private Sub Command1_Click()
  Dim i As Integer
  List1.Clear
  For i = 0 To Screen.FontCount      ' 枚举系统字体
      List1.AddItem Screen.Fonts(i)
  Next
  Label2.Caption = "您的系统共有 " & List1.ListCount & " 种字体"
End Sub

Private Sub List1_Click()       '显示字体
  Label3.Font = List1.Text
  Label4.Font = List1.Text
End Sub

Private Sub Command2_Click()
  End
End Sub

⌨️ 快捷键说明

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