Folder items
Page 1 of 1
Folder items need help !
#1
Posted 31 May 2009 - 08:20 AM
Okay, hello everybody !
I made a textbox1, button1 and richtextbox1.
When i press button1, folder dialog pops up, i choose folder i need and textbox1.text changes to .selectedpath.
The Question:
How to make richtextbox1.text show the folder items i got?
(example: folder - My Music, items - song1.mp3,song2.mp3,song3.mp3,
so richtextbox looks like song1.mp3
song2.mp3
song3.mp3)
How i make like this?
Please, need quick answer !
I made a textbox1, button1 and richtextbox1.
When i press button1, folder dialog pops up, i choose folder i need and textbox1.text changes to .selectedpath.
The Question:
How to make richtextbox1.text show the folder items i got?
(example: folder - My Music, items - song1.mp3,song2.mp3,song3.mp3,
so richtextbox looks like song1.mp3
song2.mp3
song3.mp3)
How i make like this?
Please, need quick answer !
#2
Posted 31 May 2009 - 08:22 AM
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Post your code like this:
Thanks.
Post your code like this:
Thanks.
#3
Posted 31 May 2009 - 08:23 AM
Thats the Button1 Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click With FolderBrowserDialog1 .RootFolder = Environment.SpecialFolder.Desktop .SelectedPath = "c:\" .Description = "Select the Source Folder" If .ShowDialog = DialogResult.OK Then TextBox1.Text = .SelectedPath End If End With End Sub
This post has been edited by gizzy123: 31 May 2009 - 08:32 AM
#5
Posted 31 May 2009 - 06:19 PM
Google is your friend....
http://articles.tech...11-6086490.html
You should be able to adapt their code to a rich text box and even modify it if you only want to add .mp3 files for example.
http://articles.tech...11-6086490.html
You should be able to adapt their code to a rich text box and even modify it if you only want to add .mp3 files for example.
Page 1 of 1

Add Reply




MultiQuote


| 


