Frank2
April 26, 2012, 5:17am
1
I'm expanding on the sample app Track and edit shapes.
When editing a shape, I want access to the point selected - but I cannot get the ControlPointSelectedEditInteractiveOverlayEventArgs passed along. I’ve made the eventhandler AddHandler Map1.EditOverlay.ControlPointSelected, AddressOf OnControlPointSelected and Private Sub OnControlPointSelected() Debug.print ("Working fine") End Sub And this is working as intended. However I've got no idea of how to get the current selected point. Sample code in VB, please.
Gary2
May 1, 2012, 2:20pm
2
Hello Frank,
Thanks for your post, once the case is raise, you can easily get the current selected point, please see the code below:
AddHandler winformsMap1.EditOverlay.ControlPointSelected, AddressOf EditOverlay_ControlPointSelected Private Sub EditOverlay_ControlPointSelected(sender As Object, e As ControlPointSelectedEditInteractiveOverlayEventArgs) Dim point As New PointShape(e.SelectedFeature.GetWellKnownText()) End Sub
Regards,
Gary
Hi Gary
Thanks a bunch - that was exactly what I needed.
Regards, Frank.
Gary2
May 2, 2012, 9:17am
4
Hello Frank, You are welcome, please feel free to let us know your questions. Regards, Gary