Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Sample application in c#

This is a discussion on Sample application in c# within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi everyone - I am pulling what is left of my hair out over this one... So - to aid ...

  1. #1
    alt-088 is offline Junior Member White Belt
    Join Date
    Jul 2004
    Posts
    9

    Sample application in c#

    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...

    thanks
    tony

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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)
    Code:
    axMap.NewMap(MapPoint.GeoMapRegion.geoMapNorthAmerica);
    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

  3. #3
    alt-088 is offline Junior Member White Belt
    Join Date
    Jul 2004
    Posts
    9

    Any idea what this means???

    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
    tony

  4. #4
    alt-088 is offline Junior Member White Belt
    Join Date
    Jul 2004
    Posts
    9

    hmmm

    Well -

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


    go figure


    thanks for everyones help!!

    take care
    tony

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MP 2006 & VB6 Sample Code
    By Mike2005 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-18-2006, 12:23 PM
  2. MegaPoints VS.NET Sample Project
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-20-2004, 01:42 PM
  3. c# code sample??
    By alt-088 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-23-2004, 11:13 AM
  4. SDK Sample Code
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-23-2003, 07:31 AM
  5. Home Locator Sample Application
    By Anonymous in forum MP2K Magazine Articles
    Replies: 4
    Last Post: 11-20-2002, 04:07 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66