Displaying Windows While the Main Window Is Hidden

Displaying Windows While the Main Window Is Hidden

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

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

 SCREEN = OFF

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.

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular