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

VB 6.0 and MapPoint add a pushpin?

This is a discussion on VB 6.0 and MapPoint add a pushpin? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Iíve been surfing all day and downloading all kinds of crazy MapPoint examples but for the life of me canít ...

  1. #1
    hotrdd is offline Junior Member White Belt
    Join Date
    Jun 2005
    Posts
    6

    VB 6.0 and MapPoint add a pushpin?

    Iíve been surfing all day and downloading all kinds of crazy MapPoint examples but for the life of me canít seem to create my own MapPoint interactive program. Can anyone give me an example of some full code that will add a pushpin to an open MapPoint application by postal or zip code? Right now Iím exhausted and about 6 pots of coffee shy of a working solution.

    In the end Iíd like to have my code start running based on a ďright clickĒ on the MapPoint map but for the time being Iím fine with stepping through my code from VB 6.0 , for some reason all of the examples Iíve tried to create just sit there and none of the events ever get fired. EXAMPLES, IDEAS or COFEEE Welcome? I'm familiar with VB 6.0 but not on how to get it working with MapPoint... THANKS

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Try this example.

    Code:
    Dim objmap As MapPoint.Map
    Set objmap = GetObject(, "MapPoint.Application").ActiveMap
    Set objFindResults = objmap.FindAddressResults(, , , , "20037", geoCountryUnitedStates)
    objmap.AddPushpin objFindResults(1).Location, "My Pushpin"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Getting the cursor to look like a MapPoint pushpin
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-04-2006, 04:02 AM
  2. MapPoint logo obscuring pushpin
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-29-2004, 06:13 PM
  3. How to Add pushpin to a MapPoint Direction every 50m.?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-26-2003, 03:15 PM
  4. Finding Pushpin Name by clicking on the Pushpin?(MP 2002)
    By NickSP in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-10-2003, 01:11 PM
  5. VB6 + MapPOINT : How to go to a Pushpin ?
    By Vincent BENNER in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-06-2002, 11:14 AM

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