R
Randy
Hi,
I have a listbox that allows multiple selections. I need to loop
through each selection and execute code based on the text of the
item. I'm sure that this is really simple, but I can't quite figure
out how to retrieve the text of each item. Here is the idea:
For x As Integer = 0 To lbx.SelectedItems.Count - 1
MessageBox.Show(lbx.SelectedItems.Item(x))
Next
I have tried a lot of different approaches to this, but I cannot
figure out how to simply retrieve the text of each selected item.
Can anybody help?
Thanks,
Randy
I have a listbox that allows multiple selections. I need to loop
through each selection and execute code based on the text of the
item. I'm sure that this is really simple, but I can't quite figure
out how to retrieve the text of each item. Here is the idea:
For x As Integer = 0 To lbx.SelectedItems.Count - 1
MessageBox.Show(lbx.SelectedItems.Item(x))
Next
I have tried a lot of different approaches to this, but I cannot
figure out how to simply retrieve the text of each selected item.
Can anybody help?
Thanks,
Randy