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

ID: Q76515


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for Windows, versions 2.0, 3.0
  • Microsoft Visual Basic programming system for Windows, version 1.0
  • Microsoft Windows 3.0


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.


MORE INFORMATION

Steps to Reproduce Problem

  1. In the Visual Basic environment (VB.EXE), place a label on a blank form.


  2. Add the following code to the form's Form_click event procedure:
    
       Label1.alignment = 1  'right justified
       Label1.caption = string$ (277, "k")
       Label1.refresh 


  3. From the Run menu, choose Start or press the F5 key.


  4. 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 :
Version : WINDOWS:1.0,2.0,3.0
Platform : WINDOWS
Issue type :


Last Reviewed: January 20, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.