📄 form1.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1
Caption = "显示“字体”对话框"
ClientHeight = 2100
ClientLeft = 60
ClientTop = 345
ClientWidth = 4620
LinkTopic = "Form1"
ScaleHeight = 2100
ScaleWidth = 4620
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "设置字体"
Height = 495
Left = 1680
TabIndex = 0
Top = 1440
Width = 1215
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 240
Top = 840
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "照猫画虎"
Height = 180
Left = 360
TabIndex = 1
Top = 120
Width = 720
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()
On Error Resume Next
With CommonDialog1
.Flags = cdlCFBoth
.ShowFont
End With
Label1.FontName = CommonDialog1.FontName
Label1.FontSize = CommonDialog1.FontSize
Label1.FontBold = CommonDialog1.FontBold
Label1.FontItalic = CommonDialog1.FontItalic
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -