How to: Hide the Main Visual FoxPro Window

JavaScript Editor js editor     Web development 



Main Page

If you're running a top-level form, you might not want the main Visual FoxPro window to be visible. You can use the Visible property of the Application object to hide and show the main Visual FoxPro window as needed.

To hide the main Visual FoxPro window

  1. In the Init Event of the form, include the following line of code:

    В Copy Code
    Application.Visible = .F.
  2. In the Destroy Event of the form, include the following line of code:

    В Copy Code
    Application.Visible = .T.

Make sure that you also provide a way to close the form by using THISFORM.Release in some method or event.

Note:
You can also include the following line in a configuration file to hide the main Visual FoxPro window: SCREEN = OFF

See Also



JavaScript Editor js editor     Web development