View Single Post

  #5 (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,

I'm not sure I understeand your question. I tryed the code in a simple project and it works. So I dont understeand the prolbem. Can uou clarify what you means ?
Yes. I apologize, I didn't explain myself very well the first time. Since I'm using the MapControl< I was hoping to see how someone would reference the map control, loc obj and pp obj properly, etc. so that the above code would run. I thought if I could see everything inside the form load event, I would be able to understand better.
------------------------------------------------------
Private Sub Form_Load()
Mappointcontrol1.NewMap geoMapNorthAmerica

... <--------- ' whatever references are necessary for loc, pp,
... <---------- ' so that the code following with plot a pushpin


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


End Sub
Reply With Quote