>>Create the Form with the Visible property set .F., or set the property to .F. in the Load method; in the Init:
>>
>>WITH thisform
>> .lockscreen = .T.
>> =DODEFAULT()
>> .WindowState = 2
>> .visible = .t.
>> .lockscreen = .F.
>>ENDWITH
>
>Thanks Ed, I tried this setting the visible property to .F. in the Load event, your code works but a question, the Resize Event is not fired. Any cue?
>
SWAG, I haven't tried this, so it may not work, but the form may think that it's already maximized; try changing to something like:
WITH thisform
.lockscreen = .T.
.WindowState = 0
=DODEFAULT()
.WindowState = 2
.visible = .t.
.lockscreen = .F.
ENDWITH
It may not be possible to trigger the Resize event within the Init, since it's prior to the Show(), but it's worth a try, since it will force VFP to cause the form to resize, not just minimize. Be aware that it might well call Resize twice, slowing down the display.