Posted: 2 months agoLast activity: 1 month 2 weeks ago
On start the window form is miniized can not be restored to its orignal size.
We have a Pega Robotics project with the window form that starts on the project start. Our users tell us that sometimes as application starts the window form is open in the minimized state. Even though it is visible as an icon on a task bar, it is impossible to restore the form to its normal size.
To resolve it we need to maximize the window through Task Manager.
It is very inconsistent, but it does happen.
Have anybody experienced this. Any help is appreciated.
***Edited by Moderator Marissa to update Platform Capability tags****
There must be something that is storing your form's size and setting that on startup. Is there anything like that in the code? Between starting a solution, there should be no memory of where the form was. You might potentially have an issue if a user switches between multiple monitors and forms start on a monitor no longer connected. Windows tends to remember apps and where they started last. Nothing inherent in Robotics does that though. You would have to code it to start anywhere but the default location. That might be something you might want to do here.
I have found an answer to my question. There was a code in my application that was saving this window size in the Credentials Store on the application close event. If user would minimize the window while app was still closing then the "minimized" window size would be saved, and this size would be used to open the form.
I had to change the application logic not to save the "minimized" state in the Credential Store.