View Single Post

  #3 (permalink)  
Old 12-18-2005
BWard BWard is offline
Junior Member
White Belt
 
Join Date: Dec 2005
Posts: 10
Quote:
Originally Posted by Wilfried
Hi,

Very simple

Code:
            double lat= 26.10000;
            double lon = -81.10000;
            Location loc = mp.ActiveMap.GetLocation(lat, lon, 1);
            Pushpin pp = mp.ActiveMap.AddPushpin(loc, "");
            loc.GoTo();

Wilfried - Hi. Actually, what I was looking for was just the simplest (standalone) example of what would work, if I was to paste the example in the form load event. Just so that I can see that it works. and how the map control, location and pushpin objects are referenced. The above code looks good and easy to understand, but won't, by itself plot the pushpin.
Example:

Private Sub Form_Load()
...
...

End Sub
Reply With Quote