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



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 3.0

This article was previously published under Q135142

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.

Modification Type:MajorLast Reviewed:10/20/2003
Keywords:kbprb KB135142