-
Apr 7th, 2006, 07:52 PM
#1
Thread Starter
Member
[RESOLVED] File Listbox
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?
-
Apr 7th, 2006, 07:59 PM
#2
Frenzied Member
Re: File Listbox
is this what you want
VB Code:
Private Sub Dir1_Click()
File1.Path = Dir1.List(Dir1.ListIndex)
End Sub
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Apr 7th, 2006, 08:05 PM
#3
Thread Starter
Member
Re: File Listbox
I mean like when File1 Loads all your music i want all that into a textbox
-
Apr 7th, 2006, 08:07 PM
#4
Thread Starter
Member
-
Apr 7th, 2006, 08:22 PM
#5
Frenzied Member
Re: File Listbox
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
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Apr 7th, 2006, 08:33 PM
#6
Thread Starter
Member
Re: File Listbox
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|