Microsoft KB Archive/76515

= FIX: Bad Text in Long Right-Aligned Labels in Windows ver 3.0 =

Article ID: 76515

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 1.0 Standard Edition
 * Microsoft Windows 3.0 Standard Edition

-



This article was previously published under Q76515



SYMPTOMS
When you use Visual Basic with Windows version 3.0, the caption of a right-aligned label that is set to a length exceeding 255 characters displays unusual (incorrect) characters. A left-aligned or centered caption displays correctly, and all captions display correctly when using Visual Basic with Windows version 3.1.



STATUS
Microsoft has confirmed this to be a problem in Windows version 3.0. This problem was corrected in Windows version 3.1.



Steps to Reproduce Problem
 In the Visual Basic environment (VB.EXE), place a label on a blank form.  Add the following code to the form's Form_click event procedure: Label1.alignment = 1 'right justified Label1.caption = string$ (277, &quot;k&quot;) Label1.refresh  From the Run menu, choose Start or press the F5 key. Click anywhere inside the form except on the label to see unexpected characters appear in the rightmost portion of the caption.

Additional query words: 2.00 3.00 garbage corrupted fixlist3.10

Keywords: kbbug kbfix KB76515

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.