I'm trying to create new outputs from previously outputted strings in a list box. I thought I'd run a loop by selected index value to get the program to run through each item in the list box (in this case, 4 items). Instead of running through each item in the list it runs through the first item 4 times. What am I doing wrong???
or
also, if i want to run this loop until the indexvalue stops, how could i go about doing that???
VB.NET:
Dim i As Integer = 0
Do Until i = 3
ListBox1.SelectedIndex = i
SearchDirectory(ListBox1.SelectedItem)
i += 1
Loop
VB.NET:
Dim i As Integer = 0
For i = 0 To 3
ListBox1.SelectedIndex = i
SearchDirectory(ListBox1.SelectedItem)
Next i
also, if i want to run this loop until the indexvalue stops, how could i go about doing that???