![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Store Program Coordinates 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. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Store Program Coordinates Why not just store the windows form size and always show it center screen? -you will never run into an issue of the form being opened 'off' the screen and the user looks for it. You may be opening up a can of worms trying to always open it up in the same spot like this. Miro "Derek Hart" <derekmhart@xxxxxx> wrote in message news:%23MtQF9rTJHA.4916@xxxxxx Quote: >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. > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Store Program Coordinates "Miro" <miro@xxxxxx> wrote in message news:%23T0i6awTJHA.4180@xxxxxx Quote: > Why not just store the windows form size and always show it center screen? > -you will never run into an issue of the form being opened 'off' the > screen and the user looks for it. > > You may be opening up a can of worms trying to always open it up in the > same spot like this. > > Miro > > "Derek Hart" <derekmhart@xxxxxx> wrote in message > news:%23MtQF9rTJHA.4916@xxxxxx Quote: >>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. >> resolution has changed. I think that testing the size vesus the screen and potentially scaling will work well. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Uninstalled Program, but Program Name Remains in Program & Featur | Vista General | |||