form1.frm
来自「150个经典VB API应用实例.全部是运用API写的小程序」· FRM 代码 · 共 48 行
FRM
48 行
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form Form1
Caption = "列表"
ClientHeight = 4665
ClientLeft = 60
ClientTop = 345
ClientWidth = 5190
LinkTopic = "Form1"
ScaleHeight = 4665
ScaleWidth = 5190
StartUpPosition = 3 '窗口缺省
Begin VB.CheckBox Check1
Caption = "列表形式"
Height = 375
Left = 120
TabIndex = 1
Top = 0
Width = 2535
End
Begin RichTextLib.RichTextBox RichTextBox1
Height = 4095
Left = 120
TabIndex = 0
Top = 480
Width = 4815
_ExtentX = 8493
_ExtentY = 7223
_Version = 393217
Enabled = -1 'True
TextRTF = $"Form1.frx":0000
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
RichTextBox1.SelBullet = True
Else
RichTextBox1.SelBullet = False
End If
'根据Check1的选中状态设置文本是否使用列表形式
'并设置缩进量
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?