I'm trying to find a way how to get a Listbox's items into a label.
The listbox looks like this:
I'd like the label to look like this: "WORD,#,WORD,#,WORD,#"
Could somebody help me out?
EDIT: Nevermind, got it. Just used this:
The listbox looks like this:
Code:
WORD,#
WORD,#
Could somebody help me out?
EDIT: Nevermind, got it. Just used this:
Code:
Dim elements(ListBox1.Items.Count - 1) As String
ListBox1.Items.CopyTo(elements, 0)
Dim stringNames As String = String.Join(",", elements)