Microsoft KB Archive/165168

= FIX: Modal Form and SET SYSMENU OFF Cause Menu to Disappear =

Article ID: 165168

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition

-



This article was previously published under Q165168



SYMPTOMS
If a Top-Level menu appears in a Top-Level form that calls a modal form with the system menu set off, closing the modal form causes the Top-Level form menu to disappear.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been corrected in Visual FoxPro 5.0a for Windows.



Steps to Reproduce Behavior
 Create a Top-Level menu using the Menu Builder. Select General Options from the View menu, and then select "Top-Level Form" in the resulting dialog box. Name the menu Ztop .  Create a modal form called Zmodal and set the following properties: ShowWindow = 1-In Top-Level Form WindowType = 1-Modal   Create a Top-Level form called Ztopform and set the following properties: ShowWindow = 2-As Top-Level Form   In the DblClick Event of the Ztopform form, place the following code: DO Form Zmodal   In the Init of the Ztopform form, place the following code: DO Ztop.mpr WITH THISFORM,.T.                         Close the form and type the following in the Command window: SET SYSMENU OFF </li> Run the Ztopform and double-click the form to invoke the modal form.</li> Close the modal form. In Visual FoxPro 5.0, the menu on the Top-Level form disappears.</li></ol>

Additional query words: top level

Keywords: kbbug kbfix kbvfp500afix KB165168

-

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

© Microsoft Corporation. All rights reserved.