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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start Executable in Maximized Window

Status
Not open for further replies.

Tammy

MIS
Dec 14, 2000
4
0
0
JM
I've finished an application and created the executable file for it. However whenever I run the program using a shortcut, the program will not start in a maximized size, I have to click on the maximum button. How can I format the program so that it will begin in a maximized screen.
 
Hi Tammy,

Attach a text file to your project named Config.fpw as an <Other File>. In the text file, include the following line of text: SCREEN=OFF. This will start your application with the VFP _Screen object invisible.

In your main prg, include the following lines:
_Screen.WindowState=2
_Screen.Visible=.T.

Rebuild your exe and you're ready to go. Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
You can also change the property of the shortcut to:

RUN: Maximized.

Weedz veld4663@exact.nl

'It nver hurts to help...' - Eek the cat.
 
Or in your starting program before the first form is called
modi window screen font &quot;MS Sans Serif&quot;,8
zoom window screen max
David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Hi,

Since we are in this topic. I like to know how can my application on startup, cover the whole screen, including the Win2k/WinXP start button. My application run on a kiosk, hence the start button must not be seem.

I am using VFP6 and VFP8.

Any advise is very much appreciated. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top