Dim RDFs = ListBox2.SelectedItems.Count Dim RDFsArry(RDFs) As String Dim index2 As Integer index2 = 0 For Each selectedItems In ListBox2.SelectedIndex.ToString RDFsArry(index2) = (ListBox2.SelectedItem).ToString index2 = index2 + 1 Next
I figured it out, I dropped the .ToString at the end of SelectedItems and I'm now getting the values. Thanks everyone
For Each item In ListBox2.SelectedItems RDFsArry(index2) = item Next
For Each item As String In ListBox2.SelectedIndices RDFsArray(index2) = item index2 = index2 + 1 Next
For Each
ListBox2.SelectedIndex
ListBox2.SelectedIndices
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)