VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 300,308 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,091 people online right now. Registration is fast and FREE... Join Now!




Folder items

 

Folder items, need help !

gizzy123

31 May, 2009 - 08:20 AM
Post #1

New D.I.C Head
*

Joined: 31 May, 2009
Posts: 35


My Contributions
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 !




User is offlineProfile CardPM
+Quote Post


PsychoCoder

RE: Folder Items

31 May, 2009 - 08:22 AM
Post #2

Dyslexics Untie!
Group Icon

Joined: 26 Jul, 2007
Posts: 14,701



Thanked: 501 times
Dream Kudos: 11450
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
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: code.gif

Thanks.
User is offlineProfile CardPM
+Quote Post

gizzy123

RE: Folder Items

31 May, 2009 - 08:23 AM
Post #3

New D.I.C Head
*

Joined: 31 May, 2009
Posts: 35


My Contributions
Thats the Button1 Code:


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
User is offlineProfile CardPM
+Quote Post

gizzy123

RE: Folder Items

31 May, 2009 - 08:33 AM
Post #4

New D.I.C Head
*

Joined: 31 May, 2009
Posts: 35


My Contributions
Sooooo, im getting help? :S
User is offlineProfile CardPM
+Quote Post

mark.bottomley

RE: Folder Items

31 May, 2009 - 06:19 PM
Post #5

D.I.C Addict
****

Joined: 22 Apr, 2009
Posts: 780



Thanked: 127 times
My Contributions
Google is your friend....

http://articles.techrepublic.com.com/5100-...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.
User is offlineProfile CardPM
+Quote Post

noorahmad

RE: Folder Items

31 May, 2009 - 08:04 PM
Post #6

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
you can do it by Sysmte.IO
Sysetm.IO
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 01:48PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month