📄 frame.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 2790
ClientLeft = 60
ClientTop = 345
ClientWidth = 5040
LinkTopic = "Form1"
ScaleHeight = 2790
ScaleWidth = 5040
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame3
Caption = "字体"
Height = 1935
Left = 3360
TabIndex = 2
Top = 840
Width = 1455
Begin VB.OptionButton Option6
Caption = "黑体"
Height = 255
Left = 120
TabIndex = 11
Top = 1440
Width = 975
End
Begin VB.OptionButton Option5
Caption = "楷体"
Height = 255
Left = 120
TabIndex = 10
Top = 960
Width = 975
End
Begin VB.OptionButton Option4
Caption = "宋体"
Height = 255
Left = 120
TabIndex = 9
Top = 480
Width = 975
End
End
Begin VB.Frame Frame2
Caption = "字型"
Height = 1935
Left = 1800
TabIndex = 1
Top = 840
Width = 1455
Begin VB.CheckBox Check3
Caption = "下划线"
Height = 375
Left = 120
TabIndex = 8
Top = 1320
Width = 975
End
Begin VB.CheckBox Check2
Caption = "斜体"
Height = 375
Left = 120
TabIndex = 7
Top = 840
Width = 975
End
Begin VB.CheckBox Check1
Caption = "粗体"
Height = 375
Left = 120
TabIndex = 6
Top = 360
Width = 975
End
End
Begin VB.Frame Frame1
Caption = "字号"
Height = 1935
Left = 240
TabIndex = 0
Top = 840
Width = 1455
Begin VB.OptionButton Option3
Caption = "20"
Height = 375
Left = 240
TabIndex = 5
Top = 1320
Width = 975
End
Begin VB.OptionButton Option2
Caption = "16"
Height = 375
Left = 240
TabIndex = 4
Top = 840
Width = 975
End
Begin VB.OptionButton Option1
Caption = "12"
Height = 375
Left = 240
TabIndex = 3
Top = 360
Width = 975
End
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "VB入门与实战"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 360
TabIndex = 12
Top = 120
Width = 4335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then Label1.FontBold = True Else Label1.FontBold = False
End Sub
Private Sub Check2_Click()
If Check2.Value = 1 Then Label1.FontItalic = True Else Label1.FontItalic = False
End Sub
Private Sub Check3_Click()
If Check3.Value = 1 Then Label1.FontUnderline = True Else Label1.FontUnderline = False
End Sub
Private Sub Option1_Click()
If Option1.Value = True Then Label1.FontSize = 12
End Sub
Private Sub Option2_Click()
If Option2.Value = True Then Label1.FontSize = 16
End Sub
Private Sub Option3_Click()
If Option3.Value = True Then Label1.FontSize = 20
End Sub
Private Sub Option4_Click()
If Option4.Value = True Then Label1.FontName = "宋体"
End Sub
Private Sub Option5_Click()
If Option5.Value = True Then Label1.FontName = "楷体_GB2312"
End Sub
Private Sub Option6_Click()
If Option6.Value = True Then Label1.FontName = "黑体"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -