i am trying to put the contents of a listbox into an array using listcount so i can sort and manipulate the data in the listbox using linq. Everytime I try to use listcount it errors and tells me that listcount is not a member of systems.windows.forms.listbox It also gives this error or list. Here is the for loop i am trying to use to put the data into the array.
For i = 0 To displayListBox1.Listcount - 1
sorting(i) = displayListBox1.list(i)
Next
i dim'd i as an integer and sorting() as a string early in the program as class level variables. displayListBox1 is the name of the listbx containing the data I need to use in my LINQ inquiry. thank you.