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

MapPoint 2010 and WPF Vb.net

This is a discussion on MapPoint 2010 and WPF Vb.net within the Development forums, part of the MapPoint Desktop Discussion category; Hi i want to add a MAP to my WPF Visual Studio 2010 in VB.NET I have create my userControl.... ...

  1. #1
    oduval is offline Junior Member White Belt
    Join Date
    Oct 2010
    Posts
    1

    MapPoint 2010 and WPF Vb.net

    Hi i want to add a MAP to my WPF Visual Studio 2010 in VB.NET

    I have create my userControl....

    But nothing work... can you help me STEP BY STEP !

    Thank

    I have try this..
    windowsFormsHost1.Child = Monaffaire

    Dim objApp As MapPoint.Application = Nothing
    Dim objLoc As MapPoint.Location
    objApp.Visible = True
    objApp.UserControl = True
    objLoc = objApp.ActiveMap.GetLocation(46.659496, -71.298362)

    objApp.ActiveMap.AddPushpin(objLoc, "Nick's Added Pushpin")




    No sucess !

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

    Re: MapPoint 2010 and WPF Vb.net

    Hi,

    I'm not a VB specialist but:
    Dim objApp As MapPoint.Application = Nothing
    should be:
    Dim objApp As New MapPoint.Application

  3. #3
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,806
    Blog Entries
    52

    Re: MapPoint 2010 and WPF Vb.net

    Yes you need to set the MapPoint Application object (ie. create a MapPoint app) before using it.

    This would work with a standalone MapPoint application rather than the MapPoint control.

    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapPoint 2010 GPS API
    By mjfara in forum MapPoint Desktop Discussion
    Replies: 18
    Last Post: 11-01-2011, 01:37 PM
  2. Using MapPoint 2010 w/ WPF 4.0
    By BobFromBoston in forum Development
    Replies: 0
    Last Post: 08-15-2010, 06:46 AM
  3. MapPoint 2010 & Italy
    By VoXiS in forum MapForums Plus Chat
    Replies: 0
    Last Post: 01-29-2010, 10:24 AM
  4. Mappoint 2010
    By lacja in forum Development
    Replies: 6
    Last Post: 12-22-2009, 12:16 PM
  5. Mappoint 2010 / Streets and Trips 2010
    By dpendell in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-23-2009, 12:34 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