PRB: Carriage Return Won't Wrap Lines in Text Box Control (74906)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q74906 SYMPTOMS
Under Microsoft Windows version 3.0, using Chr$(13) (the carriage return
character) alone to create a line wrap to the next line in a Visual Basic
text box control causes the character following the carriage return to be
removed from a multiline text box. Under Microsoft Windows, version 3.1, it
will cause a pipe character '|' to be displayed in the place of the
CHR$(13).
RESOLUTION
To wrap to the next line correctly, you must use both a carriage return and
a linefeed -- Chr$(13) and Chr$(10).
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbprb KB74906 |
---|
|