Set the WindowState property to 2.
If you are using the VFP window, that would be _screen.WindowState = 2.
If you are using your own top level form, that would be oTopLevelForm.WindowState = 2, where oTopLevelForm is the reference to your form.
>I have created an application projecc,using the VFP 5.0 project wizard.
>
>I can see the application object called "goApp" in the main program code. I have the methods goApp.SetIcon(...), goApp.SetCaption(...), goApp.cStartupMenu, etc.
>
>Now, How can I maximize the main application window? I guess that I have to use the goApp object, but I dont know how.
>
>Thanks in advance.
Doug Stalter
"According to the proverb, the best things are the most difficult." -Plutarch