Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/105003

From BetaArchive Wiki

How To Hide the Command Window in FoxPro

ID: Q105003

2.50 2.50a | 2.00 2.50 2.50a


kbprg The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

A programmer using Microsoft FoxPro may find it necessary to hide the Command window from within the executing program in order to restrict the end user from gaining access to core routines, or to the program itself. The Command window may also be hidden in order to make the programmer's menu the only thing visible to the end user.

To hide the Command window:

1. Define a window to hold the Command window. 2. Activate the Command window inside the small window.

NOTE: Do not activate the small window.

For example:

   DEFINE WINDOW hide FROM 1,1 to 3,3
   ACTIVATE WINDOW command IN hide

Because window "hide" does not get activated, the Command window inside "hide" will not be visible. NOTE: In FoxPro for MS-DOS, the following command will bring the command window back once it is hidden:


When the key label is selected, the Command window will be activated in the screen. Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a KBCategory: kbprg KBSubcategory: FxprgGeneral

Keywords          : FxprgGeneral 
Version           : 2.50 2.50a | 2.00 2.50 2.50a
Platform          : MS-DOS WINDOWS

Last Reviewed: January 10, 1997
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.