>>Hi all,
>>So I thought that putting _screen.windowstate=2 in the main program will force the application (exe) to start maximized. However, if the last state of the application was not maximized before it was closed - the application starts in WindowState = normal.
>>
>>I read a technical document about this behavior but can't find it. Is there a way to force the application to always start maximized?
>
>There is something remembering last state and restoring to it in your application (e.g. the code fires after you set the WindowState). Try putting some break after your statement and verify, if it's indeed maximized.
Naomi, Thank you dear. There was indeed a code that checks for _screen.WindowState=0 and "reverted" the maximized screen to normal.
ramil
~~ learning to stand still