📄 frm2.frm
字号:
VERSION 5.00
Begin VB.Form frm2
Caption = "frm2"
ClientHeight = 4485
ClientLeft = 60
ClientTop = 450
ClientWidth = 5940
LinkTopic = "Form3"
ScaleHeight = 4485
ScaleWidth = 5940
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "关闭"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3480
TabIndex = 6
Top = 2640
Width = 1935
End
Begin VB.Frame Frame1
Caption = "文本风格"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1935
Left = 480
TabIndex = 2
Top = 1920
Width = 2415
Begin VB.OptionButton Option3
Caption = "斜体"
Height = 180
Left = 720
TabIndex = 5
Top = 1560
Width = 975
End
Begin VB.OptionButton Option2
Caption = "粗体"
Height = 180
Left = 720
TabIndex = 4
Top = 1020
Width = 975
End
Begin VB.OptionButton Option1
Caption = "正常"
Height = 180
Left = 720
TabIndex = 3
Top = 480
Width = 975
End
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 = 615
Left = 600
TabIndex = 1
Top = 960
Width = 4215
End
Begin VB.Label Label1
Caption = "请在下面的文本框里输入正文:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 360
TabIndex = 0
Top = 240
Width = 4455
End
End
Attribute VB_Name = "frm2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
Form2.Show
End Sub
Private Sub Option1_Click()
If Option1.Value = True Then
If Text1.Font.Bold = True Then Text1.Font.Bold = False
If Text1.Font.Italic = True Then Text1.Font.Italic = False
End If
End Sub
Private Sub Option2_Click()
If Option2.Value = True Then
Text1.Font.Bold = True
Text1.Font.Italic = False
End If
End Sub
Private Sub Option3_Click()
If Option3.Value = True Then
Text1.Font.Bold = False
Text1.Font.Italic = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -