display selectedItems in a label

Posted by Cecilia on Stack Overflow See other posts from Stack Overflow or by Cecilia
Published on 2011-01-07T05:22:05Z Indexed on 2011/01/07 5:54 UTC
Read the original article Hit count: 154

Filed under:

I need to display the selecteditems in a label I am using VB 2005 I set the selection mode to multi-extended It did work selecting only one item with the following code: me.xresultslabel.text= me.xlisttextbox.text.selectedItem.tostring

But when I tried to display more than one item using the following code: me.resultlabel.text= me.xlisttextbox.text.selectedItems, I get the following string on the label: system.windows.forms.listbox+selectedobjetcollections.

any help will be highly appreciate

© Stack Overflow or respective owner

Related posts about vb.net