How to delete a Marker clicking on it

Topics: Windows Forms
Oct 17, 2012 at 8:40 PM

I have a application with several Markers on window, perhaps that in some moment the user needs to delete some of then just clicking on each desired, is this possible?

I have tryed to use mouse event in

void MainMap_MouseDown(object sender, MouseEventArgs e)

and the event is capture ok but i don´t know how to delete, what argument to pass

thanks

Marcelo

Oct 17, 2012 at 9:12 PM

map.OnMarkerClick += ...

...

objects.Markers.Remove(item);

Oct 18, 2012 at 12:34 PM

Great radioman !

worked fine, thank you again;

marcelo