G
Guest
Hi,
I have an app developed using Windows Forms. I need to save the size that
the user resizes the app to, so as to open the app window to that size when
the user restarts the app. I also need to save the desktop location of the
app, so as to display the app window at that location when the app restarts.
What is the best way to do this?
I have implemented this using a config file, such that I save the
size.width, size.height, and location.x, location.y of the app when the event
to close the app is fired. The problem with this is that when the user closes
the app in its minimized state, then the app size is 160 x 30, and the app
re-opens at this size at the next restart.
Thanks.
-Shefali
I have an app developed using Windows Forms. I need to save the size that
the user resizes the app to, so as to open the app window to that size when
the user restarts the app. I also need to save the desktop location of the
app, so as to display the app window at that location when the app restarts.
What is the best way to do this?
I have implemented this using a config file, such that I save the
size.width, size.height, and location.x, location.y of the app when the event
to close the app is fired. The problem with this is that when the user closes
the app in its minimized state, then the app size is 160 x 30, and the app
re-opens at this size at the next restart.
Thanks.
-Shefali