I am trying to read the selected items from a list box into an array. The code I have is:
Public Sub Array_lstCells()
Dim a As Integer = lstCells.SelectedItems.Count
Dim i As Integer = 0
For Each SelectedItem In lstCells.SelectedItems
arr_lstCells(i) = lstCells.SelectedItems.Item(i)
i = i + 1
I would also like to display these values in a message box just to make sure it is capturing everything properly.