dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Jul 27, 1999

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Hiding the Main FoxPro Window

Question:
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.

Answer:
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:

SCREEN=OFF
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:
 
C:\MYAPP\MYEXE.EXE
Change the shortcut to:
 
C:\MYAPP\MYEXE.EXE -cCONFIG.FPW
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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date