How Windows Versions 3.0 and 3.1 Activate Apps Differently

ID: Q95463


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for Windows, versions 2.0, 3.0


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.


  4. Add the following code to Form_Load of Form1:
    
          Sub Form_Load
             Form1.Show
             Form2.Show
             Form3.Show
          End Sub 


  5. 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).


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


  7. Run NOTEPAD.EXE.


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


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


  10. Start Windows version 3.0.


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


Additional query words: 2.00 3.10 3.00

Keywords :
Version : WINDOWS:2.0,3.0
Platform : WINDOWS
Issue type :


Last Reviewed: January 25, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.