>>_SCREEN.WindowState is not always reliable. Besides, why would you want your app to open minimized, anyway?
>
>Some users want her app. open minimized when they logon. And they just have to maximize it when they want to use it !
Put a SCREEN = OFF in CONFIG.FPW, and then set _SCREEN.WindowsState to whatever you like before issuing an _SCREEN.Show(). Let the user configure the starting mode in the app. My preference would be to store the user selection in the registry under the HKEY_CURRENT_USER key; doing this will allow the user's selection to move with them when they work on a different machine if the network is set up to support floating registry hives (a part of the registry related to the userid is stored to a network folder that's loaded and set when the user logs in; this permits selected registry settings to follow a user from machine to machine, but requires a bit of care and diligence when setting up the network environment.) Putting the value in the registry under HKEY_CURRENT_USER also works in the non-network environment where multiple user profiles are available on the system.