Bad Characters Using Right-Justified Label >255 Characters

ID Number: Q76515

1.00

WINDOWS

buglist1.00

Summary:

The caption of a right-justified label that is set to a length

exceeding 255 characters will display unusual (incorrect) characters.

A left-justified or centered caption will display correctly.

Microsoft has confirmed this to be a problem in Microsoft Visual Basic

programming system version 1.0 for Windows. Microsoft is researching

this problem and will post new information here as it becomes

available.

More Information:

Steps to Reproduce Problem

--------------------------

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

form.

2. In the Form_click, procedure enter the following lines:

Label1.alignment = 1 'right justified

Label1.caption = string$ (277, "k")

Label1.refresh

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

4. Click anywhere on the form outside the label.

Note how unexpected characters appear in the rightmost portion of

the caption.

Additional reference words: 1.00