How Windows Versions 3.0 and 3.1 Activate Apps Differently

Last reviewed: June 21, 1995
Article ID: Q95463
The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic for

  Windows, versions 2.0 and 3.00

SUMMARY

When activating a multiple-window application in Windows version 3.0, only the window that was activated comes to the top. In Windows version 3.1, all the windows relating to the application come to the top.

Microsoft has confirmed this to be a problem in Microsoft Windows version 3.0. This problem was corrected in Microsoft Windows version 3.1.

Because many Visual Basic applications are written as multiple-window applications, this problem is apparent when these applications are run with both Windows versions.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start Windows version 3.1.

  2. 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.

  3. From the File menu, choose New Form (ALT, F, F) twice to create two
forms,
   Form2 and Form3.

  • Add the following code to Form_Load of Form1:

          Sub Form_Load
             Form1.Show
             Form2.Show
             Form3.Show
          End Sub
    
    

  • From the File menu, chose Make EXE File (ALT, F, K) and choose the OK button to create an executable using the default name (PROJECT1.EXE).

  • From outside the Visual Basic environment, Run PROJECT1.EXE.

  • Run NOTEPAD.EXE.

  • Click Form1 in PROJECT1.EXE. All three forms for PROJECT1.EXE, which are currently being clipped by NOTEPAD.EXE, come to the top.

  • Close Windows version 3.1, saving all necessary data in open applications.

  • Start Windows version 3.0.

  • Repeat steps 6 through 8 to see that only Form1 comes to the top.


  • Additional reference words: 2.00 3.10 3.00
    KBCategory: kbui kbprg kbcode
    KBSubcategory: APrgWindow


    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: June 21, 1995
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.