Looping through all items in ListBox?
问题 I have a list box which is populated by this code: lstOutcome.Items.Add(lstMap.SelectedItem.Text); In the listbox lstOutcome, I need to be able to loop through the listbox and be able to take the value of the first,second, etc, list items. The reason I need to loop through each line and grab the value of that line is so I can use whatever value was in that line for populating something else. For example, in my list box I have: 1 2 3 I need to be able to loop through the listbox on button