Microsoft KB Archive/178384

= The report preview in a top-level form disables the system menu and the command window in Visual FoxPro =

Article ID: 178384

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition
 * Microsoft Visual FoxPro 8.0 Professional Edition
 * Microsoft Visual FoxPro 9.0 Professional Edition

-



This article was previously published under Q178384



SYMPTOMS
A Top-Level form containing a report preview disables the Visual FoxPro system menu and the Command window.



CAUSE
Even though a Top-Level form should be independent of the desktop, the report preview is in its own loop and prevents other windows from functioning.



RESOLUTION
To work around the behavior, add the NOWAIT clause to the REPORT FORM command.



STATUS
This behavior is by design.



Steps to reproduce the behavior
 Create a quick report named Ztest using the Employee table located in the Samples\Data folder. Create a form named Ztest that has the ShowWindow property set to 2-As Top-Level Form.  Add a command button to the form that contains the following code in the Click event: REPORT FORM Ztest PREVIEW WINDOW Form1  Run the Ztest form. The Visual FoxPro Command window and System menu are now available. Cycle to the Top-Level form and press the command button. The Report Preview window appears in Form1. All the menu bars of the System menu are now disabled and the Command window is inaccessible.</li></ol>

Keywords: kbprb KB178384

-

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

© Microsoft Corporation. All rights reserved.