Hey all is there any way that after you select your drive then select your folder then in the file listbox it shows everythign how can display everything in there into a textbox?
Printable View
Hey all is there any way that after you select your drive then select your folder then in the file listbox it shows everythign how can display everything in there into a textbox?
is this what you want
VB Code:
Private Sub Dir1_Click() File1.Path = Dir1.List(Dir1.ListIndex) End Sub
I mean like when File1 Loads all your music i want all that into a textbox
As text
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
Thx i made something a lil similar works perfect
Code:Dim Music As String
For i = 0 To File1.ListCount - 1
Music = Music & File1.List(i) & vbNewLine
Next