Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP exe doesn't start minimized

Status
Not open for further replies.

gbettle

Programmer
Nov 23, 2005
33
0
0
DK
Howdy all,

I have a VFP9SP1 form rolled into an EXE. This starts from a batch file. It's ShowWindow is "2 - As Top-Level Form".

I've changed the forms WindowState to be "1 - Minimized". But the form still starts as normal.

I've also tried _SCREEN.WindowState = 1 in Main.prg, form.Load and form.Init and it still opens the form - it isn't minimized.

Do I need something else changed?

Cheers,

Garry
 
Hello again,

I've found the problem.

I had SCREEN = Off inside a Config.fpw file.

When I remove that it works fine.

Thanks to Barbara Paltiel - see below - over on vfug.org for the "kick" that led me to find the problem.

Cheers,

Garry

> On 10/2/07, Barbara Paltiel wrote:
>
> Gary,
> I took one of my top-level form apps and changed the WindowState on the
> primary form to minimized - it started minimized without a problem. Check
> all your underlying classes to see if something is resetting windowstate.
>
> Barbara
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top