Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Please sorry for my bad english :(

Here is the situation:

I have a .Net DLL written on C#, witch contains windows form.

MapInfo calls function from this DLL witch opens form.

Is there any way to get instance of MapInfo, that called this function? (Not just first opened instance, because i can have multiple opened)

share|improve this question
Have you taken a look at integrated mapping? – kinkajou May 3 '12 at 8:01

You can use the MapInfo 11.0 OLE Automation Type Library, and doing this:

public Class test 
    public static void MethodCalledFromMapInfo()
        MapInfoApplication _MapInfoApplication = (MapInfo.MapInfoApplication)System.Runtime.InteropServices.Marshal.GetActiveObject("Mapinfo.application");
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.