VB Grid Custom Control: Paint Problem when GridLines=True (-1)

ID Number: Q84186

1.00

WINDOWS

buglist1.00

Summary:

The grid custom control incorrectly does not paint completely when the

GridLines property is set to True (-1). The Grid control leaves

unpainted dots between the cells at the corners of each cell, along

the grid lines.

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:

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, and select the GRID.VBX custom

control file. The Grid tool will appear in the Toolbox.

3. Select the Grid tool from the Toolbox, and place a grid (Grid1) on

Form1.

4. Set the Grid Cols and Rows properties both to 8. Size the Grid so

that you can see the entire grid.

5. Set the Grid BackColor property to &HC0C0C0. This is the color of

the grid lines.

6. Run the Control Panel and set the desktop color to red, and make

sure you set the background bitmap to "none" (this makes the

problem more noticeable).

7. Minimize or close all applications other than Visual Basic.

8. Minimize Form1, then restore Form1.

After restoring the form, notice red dots appearing on the grid. This

behavior is not expected. This problem is hard to notice unless you

follow the steps exactly.

Additional reference words: 1.00