Login | Register   
RSS Feed
Download our iPhone app
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
Oct 18, 1999



Application Security Testing: An Integral Part of DevOps

Displaying Windows While the Main Window Is Hidden

When I define a window "in desktop" with the main Visual FoxPro window hidden, I can't get it to show up using Show Window or Activate Window while the main window is hidden. The only way I can get it to work is to show the screen and then hide it after it's done.

Can I get it to appear without having to activate and deactivate the main window?

Only forms that are "Top Level" forms can be visible when the main VFP window is not visible.

To make a form Top Level, set the ShowWindow property of the form to "2 - As Top Level Form".

Another useful hint when dealing with Top Level forms is to put the following line into the CONFIG.FPW file of your application:

This tells VFP to not show the main VFP window when the application starts, so it prevents the visual "flash" during the interval between when VFP is loading into memory and the execution of the line: _SCREEN.Visible=.F.
DevX Pro
Comment and Contribute






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



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date