Index was outside the bounds of the array vb.net n mapwingis
问题 I am making a map app with VB.net and Mapwingis . I want to save the map data with an array, but any error. this code : Dim scheme As New MapWinGIS.ColorScheme Dim idx As Integer idx = FormMain.TreeViewLayer.Nodes.IndexOf(FormMain.TreeViewLayer.SelectedNode) sf = FormMain.AxMapMain.get_Shapefile(idx) mainMapHandler = FormMain.AxMapMain.AddLayer(sf, True) sf = FormMain.AxMapMain.get_Shapefile(mainMapHandler) Dim fieldName As Integer fieldName = CBSymVarNameUnique.SelectedIndex sf.Categories