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

Non-Programmer Needs Push Pin Programming Help

This is a discussion on Non-Programmer Needs Push Pin Programming Help within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have a basic understanding of VB6 but it appears as though I might be in over my head. Here ...

  1. #1
    garymkrieg is offline Junior Member White Belt
    Join Date
    Oct 2006
    Posts
    1

    Non-Programmer Needs Push Pin Programming Help

    I have a basic understanding of VB6 but it appears as though I might be in over my head. Here is what I need to do. I have 500 locations in an Access database. Each location has a longitude and latitude. I want to use VB6 to put each location on the MapPoint map, each with a unique push pin symbol. Can someone point me in the direction of some sample code.

    Thanks for your help.

    Gary

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

    You have to add some symbols yourself as Mappoint does not have 500 different symbols. Therefore you can make bitmap images. First you make Location object with the latitude and longitude, then you create pushpin with that location. Then add existing or new symbol as in this example:

    Code:
    Location loc = MP.ActiveMap.GetLocation(Lat, Lon, 1);
    PushPin pp = MP.ActiveMap.AddPushPing(loc);
    pp.Symbol = MP.ActiveMap.Symbols.Add(FileName);
    This is in C#, but VB is very similar. Eventually check the help in mappoint which contains all examples in VB.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ambiguous messages ( programming or not programming? )
    By Mohamed in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-13-2006, 04:35 PM
  2. Map Point & .Net Programmer
    By sar70 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-27-2006, 08:29 AM
  3. Programming MapPoint via .NET
    By Anonymous in forum MP2K Magazine Articles
    Replies: 1
    Last Post: 02-21-2006, 10:42 AM
  4. How to programming using VC6.0
    By confach in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 03-01-2004, 06:25 AM
  5. Programming in VB.Net
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 12-01-2003, 10:52 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