I am working on an Add-in for MapPoint in C#. Interestingly, the Add-in is also loaded when another program uses the MapPoint control within itself. What I would like to do is get the name of the window that is using the MapPoint control.
In the Add-in, you can refer to this instance of the application like this:
Private MapPoint.Application thisApp = application as MapPoint.Application;
But if I look at the parent, or even the parent of the parent, I hit a ceiling at the MapPoint application. Is there a way to get the parent window name from within an add-in called by a window control in C#?