Oh, I see the problem. I need to call SimpleMarkerOverlay.Markers.Add(string, Marker) otherwise, you guys generate a random GUID! With the randon GUID, calling Markers.Remove(marker) will fail because you are again generating another random GUID :) Common guys…
I recall stumbling into this problem a while back and suggested you guys create a GUID based on object hashcode or something. Why a random GUID? What purpose does it serve if has no relationship to the object itself?
winformsMap1.Refresh(); } The logic of the code snippet above is that you can click on the map to add a marker and click the button to remove the added marker. There are no exceptions occurred. I would like to ask you what the version number you used or are there anything wrong in your sample code?