Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: MapPoint 2006 Integration with VB.net

  1. #1
    Newbie
    Join Date
    Jan 2007
    Posts
    26

    MapPoint 2006 Integration with VB.net

    Hi All!

    I recently strting writing my own front end and it is coming along nicely except for the fact I have no idea how to integrate MapPoint 2006.

    The documentation for MP2006 integration seems to be few and far between. I have googled and searched these forums for any information and/or tutorials on how to integrate MP2006 to no avail.

    Also, I downloaded RoadRunner and from what I read it is open source and it is written in VB; however, I couldn't find where to download the source.

    Can anyone point me in the right direction?

    BTW, I am using VB.net 2005.

    Thanks in advance!

    -Axel

  2. #2
    Newbie
    Join Date
    Feb 2007
    Posts
    35
    You definitely can work with MapPoint from VB.Net or C#, but you're right that it isn't the most straightforward, or well-documented, thing out there.

    The easiest way to get started is to reference the Mappoint 2006 dll in your project. Add the object to the toolbox in Visual Studio, and drop the control on a form.

    Here are a few samples to get you started (some are in C#, at least partially, but the languages are fairly close):

    http://blogs.msdn.com/cthota/archive...22/515992.aspx
    http://support.microsoft.com/kb/305200/en-us

    Note: there are some references in these samples to older versions of MapPoint, but the concepts are very close.

  3. #3
    Newbie
    Join Date
    Jan 2007
    Posts
    26
    Well I have looked at both of those and I think I am more confused now than ever.... I will need to look at them in more detail. The second link just shows how to Interact with MapPoint and the first on I will need to look at a lot more and just play with it some.

    I have the control on the form but I cannot display the map... Argh this is frustrating that there is no real documentation on this.... Typical M$!

    Thanks,

    -Axel

  4. #4
    Low Bitrate VBWizz's Avatar
    Join Date
    Aug 2004
    Location
    Cleveland , OHIO
    Posts
    77
    if you have the control on the form then put this in a button or in the form Load event

    MapPointControl.NewMap(MapPoint.GeoMapRegion.geoMa pNorthAmerica)

    that should display the map for you

    Quote Originally Posted by AxelDoomeyer View Post
    Well I have looked at both of those and I think I am more confused now than ever.... I will need to look at them in more detail. The second link just shows how to Interact with MapPoint and the first on I will need to look at a lot more and just play with it some.

    I have the control on the form but I cannot display the map... Argh this is frustrating that there is no real documentation on this.... Typical M$!

    Thanks,

    -Axel
    LilliPut Housing Complete
    MAP POINT WITH EARTH MATE
    TV/FM/XM
    1.7 GHZ 500MB RAM , 60 GB HD
    SLIM LINE DVD DRIVE
    FRONT END: CUSTOM A.N.D.I. - M.P

  5. #5
    Low Bitrate RickS's Avatar
    Join Date
    Nov 2005
    Location
    Bethesda, MD
    Posts
    86
    Check mp2kmag.com, there's a lot of good info in their forums and articles. If you're still stymied, let me know and I'll pass you some code (I don't have it on this PC).

  6. #6
    FLAC SFiorito's Avatar
    Join Date
    May 2004
    Posts
    1,363
    Actually, typical of MSFT there's lots of documentation. It's just a matter of knowing where to look. If you do anything with MSFT technology and don't know your way around MSDN, learn now. I see many people spending lots of money on books or training (or consultants at work) to get information that's freely available in the MSDN Library.

    http://msdn.microsoft.com/mappoint/

  7. #7
    Newbie
    Join Date
    Jan 2007
    Posts
    26
    Thanks for the info guys.

    BTW, I use the MSDN but I typically find more useful information elswhere on the internet. It has been a while since I have been in VB.net and I am at a complete loss because everthing I have tried so far has not worked at all. And I can't say that I know that much about C# in order to convert the code samples that were linked to above.

    That and I think my brain is about to Blue Screen for the day!

    I stumbled across mp2kmag.com earlier in my search but I didn't find anything for what I was looking for.

    I figured the part that I need to drag the control onto the form and that was about it. Every bit of code that I have seen and tried for whatever reason will not bring up the map...

    RickS, I would be interested in looking at that code. It may help....

    Thanks again...

  8. #8
    Low Bitrate RickS's Avatar
    Join Date
    Nov 2005
    Location
    Bethesda, MD
    Posts
    86
    I'm not using a PC with a complier so I won't guarantee this will work but it should be all you need to pull up a map. You'll use this on a form that you've added the MP control to (the control should be named AxMappointControl1). Let me know if you need more...

    Code:
    Dim objMap As MapPoint.Map
    
    Private Sub GPSForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
      'Open a North American map
      AxMappointControl1.NewMap(MapPoint.GeoMapRegion.geoMapNorthAmerica)
    
      'Set the map object to the current map
      objMap = AxMappointControl1.ActiveMap
    
    End Sub

  9. #9
    Newbie
    Join Date
    Jan 2007
    Posts
    26
    I finally figured that out at about 4am this morning. But thank you for the code. I knew it was something simple. It just kept hiding from me.

  10. #10
    Low Bitrate RickS's Avatar
    Join Date
    Nov 2005
    Location
    Bethesda, MD
    Posts
    86
    If you need more help, let me know...I coded my own FE in VB.NET also and have done several iterations of GPS in it using MP (though I'm using IG3 currently since it does a couple things that I can't do in MP).

Page 1 of 2 12 LastLast

Similar Threads

  1. Is MapPoint 2006 3-D?
    By netchris in forum GPS
    Replies: 1
    Last Post: 01-18-2007, 08:34 AM
  2. Mappoint 2006 and S&T 2007
    By LostAngel in forum GPS
    Replies: 3
    Last Post: 12-15-2006, 11:28 AM
  3. Centrafuse New release & mappoint 2006
    By josgab in forum Centrafuse
    Replies: 5
    Last Post: 09-06-2006, 11:00 AM
  4. MapPoint 2006, MapPoint GPS, Autoroute...
    By tomcat in forum StreetDeck
    Replies: 8
    Last Post: 08-14-2006, 12:21 PM
  5. Mappoint 2006 with RoadRunner Help???
    By surf2130 in forum Road Runner
    Replies: 3
    Last Post: 05-25-2006, 06:32 PM

Bookmarks

Posting Permissions

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