D
Derek Hart
I am storing the top, left, height and width coordinates of a winforms
application when the user exits the application, so it loads the same way
next time. If the user moves the application to the bottom right and sizes
it small, or even has multiple monitors set up and moves the application to
the next monitor, the application may come back and not be found. The user
can right click on the taskbar and choose to size it, which allows it to be
pulled back onto the screen, but that is not intuitive. Is there a clever
way to compare the top and left coordinates that I store in the registry,
and determine if those can be visible on screen? Then I could reset it.
application when the user exits the application, so it loads the same way
next time. If the user moves the application to the bottom right and sizes
it small, or even has multiple monitors set up and moves the application to
the next monitor, the application may come back and not be found. The user
can right click on the taskbar and choose to size it, which allows it to be
pulled back onto the screen, but that is not intuitive. Is there a clever
way to compare the top and left coordinates that I store in the registry,
and determine if those can be visible on screen? Then I could reset it.