BUG: Text That Contains a Single LF or CR in RichTextBox Becomes CR/LF on Windows 2000 (284948)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0, when used with:
- the operating system: Microsoft Windows 2000
- Microsoft Visual Basic Professional Edition for Windows 6.0, when used with:
- the operating system: Microsoft Windows 2000
This article was previously published under Q284948 SYMPTOMS
If you assign text that contains a single line feed character (LF, which is ASCII Character 10) or a single carriage return character (CR, which is ASCII Character 13) to the RichTextBox control, the text is modified when Riched20.dll processes the EM_STREAMIN and EM_STREAMOUT messages to include both a carriage return and line feed character (CR/LF).
This behavior only occurs on Windows 2000 and has changed (and thus regressed) since Microsoft Windows NT 4.0 Service Pack 6 (SP6). In Windows NT 4.0 SP6, the text remains unmodified.
RESOLUTIONTo resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack
The English-language version of this fix should have the following file attributes or later:
Date Time Version Size File name
-------------------------------------------------------
4/16/2001 04:31p 5.30.23.1207 412,432 Riched20.dll
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.
Modification Type: | Minor | Last Reviewed: | 9/26/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbbug kbCodeSnippet kbfix kbother kbWin2000PreSP3Fix kbWin2000sp3fix KB284948 |
---|
|