File, List Controls 2 Pixels High at Design Time (Grid Align)

ID Number: Q74347

1.00

WINDOWS

Summary:

When the "Align to grid" option is on, Visual Basic's list box and

file list box controls may not assume the correct minimum height when

you draw them shorter than two grid lines at design time. This can

result in a list box or file list box control that appears only 2

pixels (30 twips) high at design time. Visual Basic automatically

resizes other controls to the minimum height if they were drawn too

short.

Microsoft has confirmed this to be a problem with Microsoft Visual

Basic programming system version 1.0 for Windows. We are researching

this problem and will post new information here as it becomes

available.

The problem is not serious, because simply running the program causes

the control to correctly resize to the default minimum height.

More Information:

Steps to Reproduce Problem

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

1. Start Microsoft Visual Basic. From the Edit menu, choose Grid

Settings and activate (check) the "Align to grid" option.

2. Click on the list box control, or file list box control, in

the Toolbox.

3. Click on Form1 and drag the mouse across the form horizontally

without moving the mouse vertically.

4. Release the mouse button, and the control will fail to be resized

to the default minimum height (two grid lines). The control may be as

small as 2 pixels (30 twips) high.

Note that running the program causes the control to correctly resize

to the default minimum height (two grid lines).

Additional reference words: 1.00