PRB: Cannot Disable the System Menu While Running a FormID: Q136672 The information in this article applies to:
SYMPTOMSWhen you issue the command SET SYSMENU OFF to turn off the system menus from, for example, the Load event of a form, the menu goes away for a short moment but then comes right back again.
CAUSEWhen the program finishes executing, there are no more wait states. Even though the form is still up on the screen, control has transferred to the Command window. The system menu is automatically turned on when the Command window is active. That's why the menu comes back after loading the form.
RESOLUTIONRun the form from a program and include READ EVENTS after the DO FORM command. To turn the menus off, you can execute SET SYSMENU OFF before the DO FORM command in the program, or include it in the Load event of the form. This will keep the program active and hide the system menu until you use the CLEAR EVENTS or SET SYSMENU ON command. NOTE: This was called a Foundation READ in FoxPro version 2.x.
STATUSThis behavior is by design. Additional reference words: 3.00 VFoxWin KBCategory: kbprg kbprb KBSubcategory: FxprgSet |
Last Reviewed: September 14, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |