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

Last reviewed: September 14, 1995
Article ID: Q135142
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) version 4.0

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 reference words: 95 development program 4.00
KBCategory: kbui kbprg kbinterop kbprb
KBSubcategory:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 14, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.