View Single Post
 
Old 02-16-2017, 03:35 AM
Goggy's Avatar
Goggy Goggy is offline
Contributor
 
Join Date: Sep 2005
Location: Enschede,The Netherlands
Posts: 670
Default Maybe this will help you

Code:
    Private Sub LstParts_SelectedIndexChanged(sender As Object, e As EventArgs) Handles LstParts.SelectedIndexChanged
        With CType(sender, ListBox)
            If txtComments.Text = String.Empty Then
                txtComments.Text = .SelectedItem.ToString
            Else
                txtComments.Text &= vbNewLine & .SelectedItem.ToString
            End If
        End With
    End Sub
__________________
As finishing touch, god created the Dutch!

utterly useless, but always trying to help
Reply With Quote