View Full Version : Sample application in c#
09-14-2004, 01: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, 06:44 PM
Doesn't look like this forum will let you upload files? Email me at firstname.lastname@example.org 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.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.
09-16-2004, 03: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!!
09-16-2004, 04:35 PM
on a fluke - i re-installed mappoint,
and it is working now
thanks for everyones help!!
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO