I remember that I've solved this.
You must:
WindowState = 0 at design time
DO FORM {FORM} NOSHOW
In Init event:
WindowState = 2
_AlignObjects()
{FORM}.SHOW
>I have a form with the following:
>
>1) WindowState = Maximize (set at design time)
>2) resize event calls this._AlignObjects()
>3) init event calls this._AlignObjects(.T.)
>
>_AlignObjects is used to resize and rearrange objects on the screen based on the sizing of the form. However, when I launch the form, the form does maximize like it's supposed to but the objects on my screen are all sized to the initial (design) size of my form. Its as though maximizing is not calling my resize event.
>
>I even added the following code to _AlignObjects:
>
>
>= messagebox("Align "+iif(lInit,"TRUE","FALSE")
>
>
>The message box only appears once during the launch of the form and it states "Align TRUE" meaning that it was called from the Init() method and not from resize().
>
>Once the form is up and running, I can click on the Restore Down button and then Maximize again and everything works great.
>
>How can the form maximizing ignore the resize event?
>
>Any ideas? Thanks!