BUG: RichTextBox Horizontal Scroll Bar Does Not Always Appear (175501)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q175501 SYMPTOMS
The horizontal scrollbar on the RichTextBox does not always appear as
expected. If the LoadFile method is used to load a document into a
RichTextBox and that document has a line of text that is slightly wider
than the width of the RichTextBox, and if that line is located well below
the bottom margin of the RichTextBox, the horizontal scroll bar will fail
to appear.
RESOLUTION
After loading the contents of the file into the RichTextBox, read them out
into a string variable using the TextRTF property and then read them back
into the RichTextBox. The Horizontal Scroll Bar will then appear as
expected. The code for this workaround follows:
Dim x As String
x = RichTextBox2.TextRTF
RichTextBox2.TextRTF = x
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. We are researching this
bug and will post new information here in the Microsoft Knowledge
Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kb32bitOnly kbbug KB175501 |
---|
|