If you just need the items from a ListBox added as a new line in a MsgBox, see if this helps.
Dim sTemp As String = Nothing '// store items and new lines.
For Each itm As String In ListBox1.Items '// loop thru items.
'// add to String as needed.
If Not sTemp = Nothing Then sTemp &= vbNewLine & itm Else sTemp = "you ordered :" & vbNewLine & itm
Next
MsgBox(sTemp) '// display result.
codeorder
Posting Virtuoso
1,913 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384