Compartir a través de


How to: Hide the Main Visual FoxPro Window

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:

    Application.Visible = .F.
    
  2. In the Destroy Event of the form, include the following line of 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

Tasks

How to: Display a Child Form Inside a Top-Level Form

How to: Add a Menu to a Top-Level Form

How to: Extend Forms with Form Sets

Concepts

Creation of Single- and Multiple-Document Interfaces

Adding Objects to Forms

Other Resources

Customizing the Visual FoxPro Environment

Creating Forms