I think you can use a For-Loop to loop the listbox, then check the item is
selected or not.
Roughly code:
' loop the ListBox items
For iLoop = 0 To ListBox1.Items.Count - 1
' item selected
If ListBox1.Items(iLoop).Selected Then
TextBox2.Text = TextBox2.Text & ListBox1.Items(iLoop).Value & ";"
End If
Next
Hope can help you!
Rdgs,
Hero Ngan
"Matthew Louden" <ma*******@hotmail.com> ¼¶¼g©ó¶l¥ó·s»D
:e4**************@TK2MSFTNGP10.phx.gbl...
I created a listbox with multiple selectionmode property, but I have
trouble to get a list of selected values.
The following only gets the first selected value, not others.
TextBox2.Text = ListBox1.SelectedValue
Please help!!
Thanks