PROBLEM
When using VB .NET with MapObjects for the display legend control, the legend layer name and checkboxes do not display correctly.
References are not passed correctly.
Code:
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
...................
Axlegend1.setMapSource(AxMap1.GetOcx)
Axlegend1.LoadLegend(True)
End Sub
Private Sub Axlegend1_AfterSetLayerVisible(ByVal sender As Object, ByVal e As AxSampleLegendControl.__legend_AfterSetLayerVisibleEvent) Handles Axlegend1.AfterSetLayerVisible
AxMap1.CtlRefresh()
End Sub
Article ID:000008222
Get help from ArcGIS experts
Download the Esri Support App