School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,103 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,756 people online right now. Registration is fast and FREE... Join Now!



Folder items

Page 1 of 1

Folder items need help ! Rate Topic: -----

#1 gizzy123  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 31-May 09


Dream Kudos: 0

Post icon  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 !
Was This Post Helpful? 0
  • +
  • -


#2 PsychoCoder  Icon User is offline

  • apt-get install DIC.bin
  • Icon
  • View blog
  • Group: Admins
  • Posts: 16,211
  • Joined: 26-July 07


Dream Kudos: 12400

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

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: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 gizzy123  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 31-May 09


Dream Kudos: 0

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

Was This Post Helpful? 0
  • +
  • -

#4 gizzy123  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 31-May 09


Dream Kudos: 0

Posted 31 May 2009 - 08:33 AM

Sooooo, im getting help? :S
Was This Post Helpful? 0
  • +
  • -

#5 mark.bottomley  Icon User is offline

  • D.I.C Addict
  • Icon
  • Group: Expert
  • Posts: 990
  • Joined: 22-April 09


Dream Kudos: 0

Expert In: C, ASM, Pascal, Ada, Fortran, Java

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.
Was This Post Helpful? 0
  • +
  • -

#6 noorahmad  Icon User is offline

  • Author
  • Icon
  • View blog
  • Group: Author w/DIC++
  • Posts: 2,198
  • Joined: 12-March 09


Dream Kudos: 1600

Posted 31 May 2009 - 08:04 PM

you can do it by Sysmte.IO
Sysetm.IO
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

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

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month