Board index » Visual Studio » Hi im having problem displaying Multiple selection from a listbox??

Hi im having problem displaying Multiple selection from a listbox??

Visual Studio228
Hey i have a quick question if you could help in visual basic??



I did a example where i had to have one thing i selected from a list

box appear in a label control. Now i need to select many item's in the

list box and have them appear and i can't get it done??



Here's my code for one item in list box to appear in a label control



resultLabel.Text = namesListBox.SelectedItem

' this will select one item that is selected



I tired using .SelectedItems but it says cannot convert to string so i

tried and it gave garabe







thank you


-
 

Re:Hi im having problem displaying Multiple selection from a listbox??



"chris134134" <worldsoutro@gmail.com>wrote in message

Quote
Hey i have a quick question if you could help in visual basic??



I did a example where i had to have one thing i selected from a list

box appear in a label control. Now i need to select many item's in the

list box and have them appear and i can't get it done??



Here's my code for one item in list box to appear in a label control



resultLabel.Text = namesListBox.SelectedItem

' this will select one item that is selected



I tired using .SelectedItems but it says cannot convert to string so i

tried and it gave garabe







thank you





Is it .Net. If yes then it is a wrong group - look for those with .dotnet.

in their names.



Dmitriy.





-