View Full Version : Sample application in c#

09-14-2004, 12:39 PM
Hi everyone -

I am pulling what is left of my hair out over this one...

So - to aid in my tasks...

could someone PLEASE post a COMPLETE sample of a win form application that uses the OCX (activex) control and have it load a map???

i've been trying the blog solution - but there just seems to be too many missing parts for me to assimilate the procedures...


09-14-2004, 05:44 PM
Doesn't look like this forum will let you upload files? Email me at mhildner@afweb.com and I'll send you a quick app that does that.

But, just start a new project, reference and add the MapPoint control, then do something like this: (axMap is the MapPoint ActiveX)

axMap.NewMap(MapPoint.GeoMapRegion.geoMapNorthAmer ica);
axMap.ActiveMap.Location = axMap.ActiveMap.GetLocation(36.39394, -105.28393, 0);

I really have no idea of the *proper* way to go about it, as I struggled myself until I got something to work. It does work, though.

Mike HIldner

09-16-2004, 02:47 PM
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in axinterop.mappoint.dll

Additional information: This method or property is not implemented.

thanks for the assistance!!

take care

09-16-2004, 03:35 PM
Well -

on a fluke - i re-installed mappoint,
and it is working now

go figure

thanks for everyones help!!

take care