BUG: FoxPro Window Does Not Move to Front

Last reviewed: June 26, 1995
Article ID: Q123429
The information in this article applies to:
  • Microsoft FoxPro for Windows version 2.6a

SYMPTOMS

It is not possible to bring the Microsoft FoxPro window to the top when another window is on top of it. This problem occurs if a window was created by the DEFINE WINDOW command.

RESOLUTION

Do not use MsgBox() and do not call any functions in the Windows API (such as MessageBox) that create new windows. Instead, use the DEFINE WINDOW command in FoxPro to create all windows.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Resize the Microsoft FoxPro window so that it is not full screen.

  2. Execute the following code in the Command window:

    SET LIBRARY TO foxtools.fll ? msgbox("One","Two",0)

  3. Invoke the task manager.

  4. Select an application that has a window that will fall on top of the Microsoft FoxPro window. For example, if the Program Manager consumes 90% of the desktop, choosing the Program Manager should cause the Program Manager window to cover the Microsoft FoxPro window.

  5. Invoke the task manager.

  6. Select Microsoft FoxPro.

At this point, the Message Box will appear on top of the Program Manager window (or the window selected in step 4). The Microsoft FoxPro window will not be brought to the forefront, even though the Microsoft FoxPro window was requested in step 6.


Additional reference words: FoxWin 2.60a buglist2.60a
KBCategory: kbprint kbbuglist
KBSubcategory: FxprintFont


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