I wrote myself an extension (Visual Studio Package) for Visual Studio 2012. When triggered, it always opens up a form in the left-hand monitor of my dual-monitor setup. My problem is that I want the form to open up in the same monitor as VS no matter which monitor VS is currently showing in. To add to the problem, I may have more than one instance of VS running when the extension is triggered. I need to make sure that the extension's form stays with the instance of VS that launched it.
Is there any way to get something like the X and Y coordinates of the launching instance of VS when the extension is triggered? I figure that if I can get these coordinates, it shouldn't be too hard to position my form in relation to them.
Is there any way to get something like the X and Y coordinates of the launching instance of VS when the extension is triggered? I figure that if I can get these coordinates, it shouldn't be too hard to position my form in relation to them.