- Joined
- Feb 15, 2001
- Location
- Harford, WI.
If you don't mind I need a little help.
I'm taking Introduction to Visual Basic this semester at school.
I need to complete a project that requires multiple items of a listbox to be displayed in a label. I can get the single items to display by doing this:
resultLabel.Text = Convert.ToString(namesListBox.SelectedItem)
I figured to get multiple selected items to show I would do the following:
resultLabel.Text = Convert.ToString(namesListBox.SelectedItems) but it doesn't work. This is with 5 items added to the list box.
I'm using visual basic 2005, I hope I've given you enough information.
Thanks in advance for your help.
I'm taking Introduction to Visual Basic this semester at school.
I need to complete a project that requires multiple items of a listbox to be displayed in a label. I can get the single items to display by doing this:
resultLabel.Text = Convert.ToString(namesListBox.SelectedItem)
I figured to get multiple selected items to show I would do the following:
resultLabel.Text = Convert.ToString(namesListBox.SelectedItems) but it doesn't work. This is with 5 items added to the list box.
I'm using visual basic 2005, I hope I've given you enough information.
Thanks in advance for your help.