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!

How To Max Main Window

Status
Not open for further replies.

Shanachie

Programmer
Jun 18, 2000
92
0
0
US
How do I get the main window of my application to open already maximized?

modify window screen maximize

seems like it should work but it doesn't.

TIA,
ShanachieQ
[sig][/sig]
 
Use

_screen.WindowState = 2 [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
Here is a sample of the code for the main program:

&&code

WITH _Screen
.BackColor=rgb(192,192,192)
.ControlBox=.t.
.scrollbars=3
.autocenter=iif(sysmetric(1)>=800,.t.,.f.)
.picture =iif(sysmetric(1)>=800,&quot;pice2.jpg&quot;,&quot;pic4.jpg&quot;)
.Height=425
.Width=600
.Caption = &quot;My Program&quot;
.WindowState= 2 &&”to MAX the screen”
.icon=&quot;icon.ico&quot;
.windowtype=1
ENDWITH

&&endcode
see the help for WindowsState property and _screen
for more information

[sig][/sig]
 
Use this code in your main program:
ZOOM WINDOW SCREEN MAX
 
sorry for the post, had to register myself and log back on as a programmer :) [sig][/sig]
 
Thanks! It did the trick!

Shanachie
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top