I am not entirely sure how to word this questions so I am just going to explain my problem.
My VB 6 program saves the location of the screen in the registry so that when it loads up again it can have a default location. This works as expected, but I encountered a problem. I had a computer setup with 2 monitors. I dragged the window to the second screen, then the next day when I unplugged the second monitor. Every time I would load the program it would appear in the dock, but the form itself was not.
I figured it was hiding on the second monitor's space (or were the second monitor should be) Now at first I connected a second monitor to grab it back, but it did not show up. The monitor setup was such that the main monitor (1) was to the left of the new monitor (2). I had to drag (2) over to the left of (1) at which point it showed up, and I was able do drag it back to the main window and everything worked fine. I mention this because I figured each monitor number's resolution was relative to itself. Is the multimonitor one giant coordinate plane?
What I want to know is when I grab the location numbers from the registry (Form.left and Form.top) is there a way to check it against what is available to the system? This is not a huge issue, but I know I am going to get clients calling in eventually asking, "Its loading, but I cant find it!" and would like to avoid those calls if possible.
Thank you all