>Hi there,
>
>I have set the windowstate-property of a form to 2 - Maximized but the window is not maximized, It keeps its size, After having already serached a bit I tried changing the showwindow-proprty to top-level-form, looked that Lockscreen is set to .F. and set the minwidth and minheight-props back to -1. I tried it in the init-event of the form by setting "thisform.windowstate = 2" but nothing works. If I click on the maximize-button it resizes correctly. What have I missed?
>
>Thanks in advance
>
>Thomas
>
>P.S.: Hust for curiousity I tried setting windowstate to minimze but that does not work either.
Can't reproduce what you are reporting. Opening a window in its maximized state should be simple:
LOCAL MaxForm AS MaxForm
m.MaxForm = CREATEOBJECT("MaxForm")
m.MaxForm.Show()
READ EVENTS
DEFINE CLASS MaxForm AS Form
Desktop = .T.
ShowWindow = 2
WindowState = 2
FUNCTION Destroy
CLEAR EVENTS
ENDFUNC
ENDDEFINE
----------------------------------
António Tavares Lopes