📄 form44.frm
字号:
VERSION 5.00
Begin VB.Form Form4
BorderStyle = 1 'Fixed Single
Caption = "Customize"
ClientHeight = 1335
ClientLeft = 45
ClientTop = 360
ClientWidth = 3015
Icon = "Form44.frx":0000
LinkTopic = "Form4"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1335
ScaleWidth = 3015
StartUpPosition = 2 'CenterScreen
Begin VB.CheckBox Check1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Bold"
ForeColor = &H80000008&
Height = 255
Left = 1080
TabIndex = 5
Top = 480
Width = 1815
End
Begin VB.TextBox Text2
Height = 285
Left = 2280
TabIndex = 3
Top = 3000
Visible = 0 'False
Width = 1815
End
Begin VB.CommandButton Command1
BackColor = &H00FFFFFF&
Caption = "Accept"
Height = 375
Left = 1560
Style = 1 'Graphical
TabIndex = 1
Top = 840
Width = 1335
End
Begin VB.TextBox Text1
BorderStyle = 0 'None
Height = 285
Left = 1080
TabIndex = 0
Top = 120
Width = 1815
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Bold font:"
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 238
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 4
Top = 480
Width = 975
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Font size:"
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 238
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 2
Top = 120
Width = 975
End
End
Attribute VB_Name = "Form4"
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
Text2.Text = "True"
Else
Text2.Text = "False"
End If
End Sub
Private Sub Command1_Click()
mainForm.Text1.Font.Size = Me.Text1
mainForm.Text1.Font.Bold = Me.Text2
Unload Me
End Sub
Private Sub Command2_Click()
End Sub
Private Sub Form_Load()
Text1.Text = mainForm.Text1.Font.Size
Text2.Text = mainForm.Text1.Font.Bold
If Text2.Text = "True" Then
Check1.Value = 1
Else
Check1.Value = 0
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -