View Single Post

  #3 (permalink)  
Old 04-28-2008
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
Re: c# - Map location to application

Hi,

Yes as Mike say you have to write a BeforeClick event handler. There you have the x,y coordinates. to have a location from it:

Code:
Location loc = MP.ActiveMap.XYToLocation(e.x, e.y);
MP is the mappoint control in this case.
Reply With Quote