Thread
:
c# - Map location to application
View Single Post
#
3
(
permalink
)
04-28-2008
Wilfried
MapForums Plus Member
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.
__________________
rgds, Wilfried Mestdagh
www.mestdagh.biz
MapPoint coding demo
Order MapPoint 2009 with Routing and User Tools Spreadsheet
Wilfried
View Public Profile
Send a private message to Wilfried
Visit Wilfried's homepage!
Find all posts by Wilfried