Microsoft KB Archive/95463

= How Windows Versions 3.0 and 3.1 Activate Apps Differently =

Article ID: 95463

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition

-



This article was previously published under Q95463



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.



Steps to Reproduce Problem
 Start Windows version 3.1. 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. 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.</li> Click Form1 in PROJECT1.EXE. All three forms for PROJECT1.EXE, which are currently being clipped by NOTEPAD.EXE, come to the top.</li> Close Windows version 3.1, saving all necessary data in open applications.</li> Start Windows version 3.0.</li> Repeat steps 6 through 8 to see that only Form1 comes to the top.</li></ol>

Additional query words: 2.00 3.10 3.00

Keywords: KB95463

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.