View Single Post
 
Old 02-16-2017, 07:29 AM
Goggy's Avatar
Goggy Goggy is offline
Contributor
 
Join Date: Sep 2005
Location: Enschede,The Netherlands
Posts: 670
Default Your absolutly rite, try this instead.

Code:
    Private Sub LstParts_SelectedIndexChanged(sender As Object, e As EventArgs) Handles LstParts.SelectedIndexChanged
        txtComments.Text = String.Empty
        For Each Item As Object In CType(sender, ListBox).SelectedItems
            txtComments.Text &= Item.ToString & vbNewLine
        Next
    End Sub
__________________
As finishing touch, god created the Dutch!

utterly useless, but always trying to help
Reply With Quote