VS (like virtually all Windows apps that try to "nicely" restore window size/position
for you) fails to deal with an obscure case that goes something like this:
a) add a 2nd monitor to your machine
b) use VS on the 2nd monitor
c) have the 2nd monitor die
At that point, because VS is not smart enough to notice that it
is now restoring the main window to coordinates that are no longer
visible, you can start VS, but you can't see it. If you go to the taskbar,
you can right-click and select Maximize, which will produce a maximized
VS window on one of your remaining monitors. Maddeningly, however,
you cannot "restore" to use VS in any size except maximized,
since that will simply cause VS to once again display the window
in coordinates that are not actually visible.
For my own apps, I add a system context menu item called
"Center Window" so that if, for this or any other obscure reason,
the customer can't find the window, I can at least tell them how
to right-click on the taskbar icon to force the window to be splatted
in the middle of the primary monitor.
But, for today... can anyone tell me where I can locate and hammer
the (now invalid) main window restore coordinates that VS is using?