BUG: Rich Text Box Control Does Not Word WrapLast reviewed: June 2, 1997Article ID: Q167106 |
The information in this article applies to:
SYMPTOMSSetting the Multiline property of a Rich Text Box control to True does not behave as expected. By setting Multiline to True, words should wrap when they are typed or displayed in a Rich Text Box control. However, they do not.
CAUSEThis behavior occurs only if the RightMargin property of the Rich Text Box control is set to 0. However, the Help file topic for the RightMargin property of the RichTextBox control incorrectly states the following:
"The default for the RightMargin property is 0 and will cause the control to set text wrapping equal to the right-most part of the RichTextBox control so all text is viewable." RESOLUTIONTo work around this behavior, set the RightMargin property to a value greater than zero. To get the Multiline behavior to work as expected, set the RightMargin property equal to or slightly less than the Width property of the Rich Text Box control.
STATUSMicrosoft 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.
MORE INFORMATIONThis behavior occurs only with version 5.00.3714 of the Rich Text Box control that is shipped with Microsoft Visual Basic 5.0.
Steps to Reproduce Behavior
|
Keywords : vb5all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |