Hello everyone i am getting input from the user in the form of an inputbox. The inputbox then dumps the information into an arrayList which then i want my Listbox to be populated by the items within the arrayList.
so...
userName = InputBox -> arrayList.add(userName) - > Listbox.items.add(arrayList)
Here is some of my code.
userName = InputBox("Enter Name: ")
Dim users As ArrayList = New ArrayList()
users.Add(userName)
For i As Integer = 0 To users.Count
[B]termListBox.Items.Add(users.Item(i))[/B]
Next i
It gives me the error at the bold highlighted text. Any ideas?