📄 form2.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form2
Caption = "Form2"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin MSComDlg.CommonDialog CommonDialog1
Left = 3720
Top = 2040
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Command1
Caption = "字体"
Height = 375
Index = 1
Left = 2160
TabIndex = 2
Top = 2160
Width = 855
End
Begin VB.CommandButton Command1
Caption = "颜色"
Height = 375
Index = 0
Left = 360
TabIndex = 1
Top = 2160
Width = 855
End
Begin VB.TextBox Text1
Height = 1335
Left = 360
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 0
Text = "Form2.frx":0000
Top = 360
Width = 3855
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click(Index As Integer)
Select Case Index
Case 0
CommonDialog1.Flags = cdlCCRGBInit
CommonDialog1.ShowColor
Form2.Text1.ForeColor = CommonDialog1.Color
Case 1
CommonDialog1.Flags = cdlCFBoth Or cdlCFEffects
CommonDialog1.ShowFont
Form2.Text1.FontName = CommonDialog1.FontName
Form2.Text1.FontSize = CommonDialog1.FontSize
Form2.Text1.FontBold = CommonDialog1.FontBold
Form2.Text1.FontItalic = CommonDialog1.FontItalic
Form2.Text1.FontUnderline = CommonDialog1.FontUnderline
End Select
End Sub
Private Sub Form_click()
Form1.Show
Form2.Hide
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -