PRB: SelHangingIndent Property of R RichTextBox Is Not Persistent (184198)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q184198 SYMPTOMS
The SelHangingIndent property can be set to negative values to create
format paragraphs in a RichTextBox control. The value of the
SelHangingIndent property is reflected in the textRTF property of
RichTextBox. However, when the textRTF property is saved in a variable or
in a file and then restored, the SelHangingIndent property is set to 0 and
the regular paragraph format is lost.
CAUSE
The Microsoft RichTextBox control internally uses the standard RichText
DLL, Riched32.dll. This DLL does not persist the SelHangingIndent property.
This behavior can be seen in Wordpad.exe as well, because Wordpad also uses
this DLL.
RESOLUTION
Tabs and spaces can be inserted at the start of the text to create the same
format.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbprb KB184198 |
---|
|