PDA

View Full Version : Application Window Position


markstaylor
08-02-2009, 12:20 PM
Scenario:

My app is launched, repositioned (not sized) then closed.
My app saves the x,y in the registry.
Works fine, next app launch uses the saved x,y coordinates.

If using a dual screen (and positioned on second screen) on first use then closed X,Y coordinates are saved.

Next application load the user has only one screen active, application is off screen.

I have a keyboard short cut to reset app to 0,0. But is there a automatic way to verify if X,Y is off screen?

Thanks

boku
08-03-2009, 07:36 PM
Just throwing this out there but cant you just get the screen size and see if X and Y are > than Screen.Width or Screen.Height etc?