VB Grid Custom Control May Scroll Incorrectly with Scroll Box

ID Number: Q80966

1.00

WINDOWS

buglist1.00

Summary:

The Grid custom control's scroll bars may not scroll correctly when

you drag the scroll box (thumb bar) with the mouse. This problem

occurs with both horizontal and vertical scroll bars. The Grid control

scrolls correctly when you click on the scroll bar arrows or when you

click on either side of the scroll box (thumb bar).

Microsoft has confirmed this to be a problem with the Grid custom

control supplied with Microsoft Professional Toolkit for 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.

More Information:

The Grid control displays a horizontal scroll bar when all the columns

do not fit in the display area and the ScrollBars property is set to

1 (Horizontal) or 3 (Both). The Grid control displays a vertical

scroll bar when all the rows do not fit in the display area and the

ScrollBars property is set to 2 (Vertical) or 3 (Both).

Steps to Reproduce Problem

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

1. Run Visual Basic, or from the File menu, choose New Project (ALT,

F, N) if Visual Basic is already running. Form1 is created by

default.

2. From the File menu, choose Add File. In the Files box, select the

GRID.VBX custom control file. The Grid tool will appear in the

Toolbox.

3. Place a grid named Grid1 on Form1.

4. In the Properties list box, select Cols. In the Settings box, enter

3.

5. Size Grid1 so that you can see two and a half columns.

6. From the Run menu, choose Start, or press F5 to run the program.

7. Drag the scroll box (thumb bar) all the way to the right with the

mouse and release it. The grid incorrectly does not scroll.

Clicking on the scroll bar's right arrow correctly scrolls the

grid.

Additional reference words: 1.00