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 3 of 3

Capturing MapPoint Object

This is a discussion on Capturing MapPoint Object within the Development forums, part of the MapPoint Desktop Discussion category; Hey, I was looking around on Google and on the Search of MapForums, but didn't find exactly what I was ...

  1. #1
    thowle is offline Junior Member White Belt
    Join Date
    Jan 2011
    Posts
    4

    Capturing MapPoint Object

    Hey,

    I was looking around on Google and on the Search of MapForums, but didn't find exactly what I was looking for.

    Overall Picture
    What I'm trying to do, is use MapPoint 2010 NA in a system that will display the current location (GPS), and then navigate to a location (based on what I send it). I'd really like for this to be in a control, on my form -- but being that I had access errors (MapPointObj.ActiveMap.GPSNavigation.Tracking = True gives Permission Errors), I was going to try the Object method.

    Based on WinWaed's code at MapPoint 2010 GPS API
    Code:
    MapPoint.Application myApp = new MapPoint.Application();
    myApp.Visible = true;
    I've tried doing that in VB.NET, however the error comes from when it's saying it cant call NEW on the MapPoint.Application interface.

    I've got a reference in the project to Microsoft MapPoint Control 16.0, and Microsoft MapPoint Control 16.0.

    I also tried late binding directly to the process, but that didn't work either.

    I'm sure I'm overlooking something simple here, so any advice or samples, especially since I figured this would be a pretty easy task and someone has done it before, would be appreciated!

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Capturing MapPoint Object

    Hi,

    Try this step by step, it should work: MapPoint and Visual Studio 2010 Tutorial - MapPoint Articles - MP2K Magazine

    The example is in C# but you can translate it to VB.

  3. #3
    jjsisbest is offline Mappoitn and access hack White Belt
    Join Date
    Jan 2011
    Posts
    1

    Re: Capturing MapPoint Object

    Ive been trying to do the same in VBA to insert long and lat into access form fields and to create a route from my current gps location to found addresses. So far I can bring up mappoint 2010 with the pushpin in place and my gps position on the map but just cant seem to connect the two. I would be thankful for anyone that can help me retrieve my current gps location in VBA or even vb.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Capturing XY coordinates in vb.net on click event
    By skbugnait in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-09-2007, 02:01 PM
  2. Capturing Mouse Wheel Event
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 2
    Last Post: 11-30-2005, 07:31 AM
  3. Capturing Pushpin movement
    By huggesc in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-12-2003, 04:08 PM
  4. Capturing Pushpin movement
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 06-09-2003, 05:37 PM
  5. route object to drawing object
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-09-2003, 10:29 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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102