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

Why won't my child window start out maximized

Status
Not open for further replies.

yert33

Programmer
Feb 19, 2002
255
US
Main form is a Top Level Form with WindowState = 2 (Maximized)
It calls another form which is also ToLevel Form and WindowState=2. But when it appears, it's not Maximized, but in a Normal state. The Windows Maximize button is enabled up at top right along with the Minimize button. I have disabled the Close button for this form.

I want the child form to be maximized when it first appears. What am I missing ?

Thank you.
 
I don't know if this has any relation to the sizing issue, but your child form needs to be set as Show Window = 1, In a top level form.

Regards,
Jim
 
But I don't want it to be In Top Level Form, I want it to be it's own Top Level Form.....
 
That's what I have, Mike. That's why I'm wondering why it won't appear maximized.

I also have
AlwaysOnTop=.T.
AutoCenter=.T.
Closable=.F.
Desktop=.T.
Height=1153
MaxHeight=1600
MaxWidth=1600
ScaleMode=3
ScrollBars=3
ShowWindow=2
Width=1600
WindowState=2


 
The Height is from what Sysmetric(22) returns
 
MaxHeight and MaxWidth have nothing to do with maximizing a form; they simply determine the largest the form can be resized to by dragging.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top