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



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
  • Microsoft Windows 3.0

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.

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.

Modification Type:MajorLast Reviewed:12/12/2003
Keywords:kbbug kbfix KB76515