Last post Mar 17, 2009 05:06 PM by DkUltra
Mar 17, 2009 03:52 PM|jmadden93|LINK
Is there a way to to combine line's 1 and 2? I only want to loop through a list of the selected items in this listbox. This works just fine, I just wondered if there was a collection of selected values returned that I could use to avoid having to do it
For Loop1 = 0 To MyListBox.Items.Count - 1
If MyListBox.Items(Loop1).Selected = True Then
Mar 17, 2009 04:12 PM|SGWellens|LINK
If there was I wouldn't tell you.
Do one thing per line. Anything else makes the code harder to read and debug.
Mar 17, 2009 05:06 PM|DkUltra|LINK
If at least .net 3.0
A person could
For each item in MyListBox.SelectedItems
do you thing
Hope this helps