Hi,
didn't find anything like that here but here some kinky different way
to do things. Maybe some of you can use it, but use it wise.
using System.Reflection;
Get MapPoint:
object mapPoint = Activator.CreateInstance(Type.GetTypeFromProgID("M apPoint.Application.EU.13"));
Now you can work with it, unless it's the right Id ^^
Get a Property:
object activeMap = mapPoint.GetType().InvokeMember("ActiveMap", BindingFlags.GetProperty | BindingFlags.OptionalParamBinding, null, mapPoint, new object[0]);
Call a Method:
object results = activeMap.GetType().InvokeMember("FindAddressResul ts", BindingFlags.InvokeMethod | BindingFlags.OptionalParamBinding, null, activeMap, new object[6] { "Musterweg", "Stuttgart", "", "", "", "Deutschland" });
Set a Property:
activeMap.GetType().InvokeMember("Saved", BindingFlags.SetProperty, null, activeMap, new object[1] { true });
Let's get dirty![]()