Either way, to get multiple selected items into anything else (a file, a DB, etc) you need to treat your list as an array (which it actually is) and iterate all the items in the list using a For-Each loop, testing to see if .selected = true for each item....
example below is looking for selected items in a listview control (listviewitem) but just change it for a listbox control (listitem I think) (see
vb.net help):
Private Function GetQName() As String
'//strip q name
Dim qName As ListViewItem
For Each qName In lvwQueues.Items
If qName.Selected = True Then
'// do push to database here
End If
Next
qName = Nothing
End Function
The above is from a program I wrote for work, dealing with lists of message queues in a listview control. You can use the above as a guide just make sure your iteration object matches the control (listbox = listitem i think) see
vb help.
hope this helps
James