PRB: Cannot Change Icon at Runtime in Visual Basic 3.0 Apps

ID: Q135142

The information in this article applies to:

SYMPTOMS

You can't change the Icon property of a form at run time in a Visual Basic version 3.0 application.

CAUSE

Windows version 3.1 had code that looked at the first 100 icons in Visual Basic applications. Windows 95 code now looks only at the first five icons in Visual Basic applications. This change was made both for performance reasons and because later versions of Visual Basic (4.0 and beyond) no longer need this special code.

RESOLUTION

Update the Visual Basic version 3.0 application to a Visual Basic version 4.0 (or later) application.

STATUS

This behavior is by design.

Additional query words: development program

Keywords          : kbVBp300 
Issue type        : kbprb

Last Reviewed: December 31, 1998