Hiding the Main FoxPro Window

Hiding the Main FoxPro Window

Is it possible to completely hide the main Visual FoxPro window when I run an executable? In my main program, I use “_VFP.Visible = .F.”, but the main window appears for a few seconds when I first launch the executable.

Here are the steps to fix the problem you are experiencing. Let’s say that you are creating an executable called MYEXE.EXE in a directory call MYAPP…

You need to use a configuration file with your executable. Create a file called config.fpw in the directory of your executable (MYAPP).

You need to tell Visual FoxPro to not show the main window. Put the following line into config.fpw:


Change the shortcut that calls your executable so that it uses the config.fpw file. For example, if the shortcut for your application runs the executable with this statement:


Change the shortcut to:


Note that there is no space between the “-c” and the “CONFIG.FPW”.

Now when you run the executable from the shortcut, you will not see the “flash” of the executable window.

See also  5 Ways to Improve Customer Experience

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist