View Single Post

  #7 (permalink)  
Old 05-13-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
when i have an extra moment i'll see if i can help you out

in the meantime, i found a way to get the current selection on a map in C#

Code:
private void axMappointControl1_SelectionChange(object sender, AxMapPoint._IMappointCtrlEvents_SelectionChangeEvent e)
{
	MapPoint.Pushpin pin = null;
	pin = (MapPoint.Pushpin) curMap.Selection;
	MessageBox.Show(pin.Name);
}
you get an error message if you don't typecast it.
Reply With Quote