VB Repaint Problem at Design Time with > 50 Controls on Form

ID Number: Q73505

1.00

WINDOWS

buglist1.00

Summary:

If a combination of more than 50 text boxes and text labels are placed

on a form, the form may be repainted incorrectly. The usual result is

that the grid points are lost, the title bar and border are missing,

and portions of the controls are missing. This is a problem that

occurs at design time in the Visual Basic development environment. The

problem does not apply to a program that is run in the Visual Basic

environment or run as a .EXE program.

Microsoft has confirmed this to be a problem in 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.

This problem has only been observed with text boxes and labels. Other

controls on the form (command buttons, picture boxes, and so on)

repaint correctly.

More Information:

The following steps may reproduce the error on some machine

configurations:

1. Create a new form and place 50 text boxes and/or labels on the

form.

2. Double-click on one of the controls to bring up its code window.

3. Make sure the code window covers most of the form, then close the

code window by double-clicking on its control box.

4. The grid points, title bar, and border may be missing on the

repainted form.

To repaint the form correctly, position the mouse pointer above where

the title bar should be, hold down the left button, and move the form

window. This will bring back the title bar and border. To get the grid

points back, choose Grid Settings from the Edit menu, make sure the

Show Grid option is enabled, then choose OK. Your form should now be

repainted correctly.