I am using visual studio 2008 with vb as my language. I have a databound multiextended listbox. I need to get the selected value for each item that is selected. I have searched for 开发者_如何学Gotwo weeks trying to find and answer. Can anyone help? I would greatly appreciate it.
Something is up with the way you are binding your data to the listbox in the first place, or you need to do a "DirectCast" of the item before you can see it's contents.
How about this:
For Each Item In ListBox1.SelectedItems
//Do Stuff here to the item
Next
精彩评论