this does what you want separated by commas
VB Code:
Private Sub Dir1_Click() File1.Path = Dir1.List(Dir1.ListIndex) Text1.Text = "" Dim a As Long For a = 0 To File1.ListCount - 1 Text1.Text = Text1.Text & " " & File1.List(a) If a < File1.ListCount - 1 Then Text1.Text = Text1.Text & "," End If Next End Sub




Reply With Quote