Products Affected: MapXtreme.NET
This sample code snippet tells when a feature is added to the DefaultSelection using the Selection Tool in a Desktop application.
VB.Net Code: 1. Add this line of code to the MapForm1_Load function: AddHandler MapControl1.Tools.FeatureSelected, AddressOf Tools_FeatureSelected 2. Then, in the Tools_FeatureSelected function, add the code to use to handle this event. Here is one example: Private Sub Tools_FeatureSelected(ByVal sender As Object, ByVal e As MapInfo.Tools.FeatureSelectedEventArgs) MessageBox.Show("A Feature has been Selected!") End Sub
UPDATED: September 13, 2019