Windows Develop Bookmark and Share   
 index > Windows Forms General > Best way to get a directory tree?
 

Best way to get a directory tree?

Hello.
As the title implies i'm looking for a way to get a tree that contains all available drives, their directories, etc. on a computer.
I've seen apps using the same tree that is used in Windows explorer, is it recommended to use that or should i take a different approach?
If so, how would i do that?
If not, what else would you suggest?
s5340409  Wednesday, November 26, 2008 12:27 PM
You'd do it by borrowing somebody else's mountain of code it takes. Or by using OpenFileDialog.
nobugz  Wednesday, November 26, 2008 12:47 PM
You'd do it by borrowing somebody else's mountain of code it takes. Or by using OpenFileDialog.
nobugz  Wednesday, November 26, 2008 12:47 PM
A FileOpenDialog is not really applicable where i want to use this.

I think i'll use "someone else's moutain of code" to see how it works and try to put together what i need myself
If that doesn't work i can still borrow his stuff.

Thanks Smile
s5340409  Wednesday, November 26, 2008 2:00 PM

May be a third party tool may do the job.
you should make a search on goolge for tool like print directory on the web.

jean3167  Wednesday, September 16, 2009 10:36 AM
If you plan on developing for Vista and above you can use the new WindowsApiCodepack
VB.NET to C# http://www.developerfusion.com/tools/convert/vb-to-csharp/
Se3ker385  Wednesday, September 16, 2009 12:10 PM

You can use google to search for other answers

Custom Search

More Threads

• Drawing Lines between two Listboxs
• SmartClient ?
• X Y position after drag drop
• How To Change the Title of a Web Form Programmatically
• WebBrowser Popups Lose Session
• Autoredraw, Paint, etc.
• How to find is a form already open in a Multiple form application
• Clicking on a label's border does not work
• how to programmatically set column field(s) to read-only?
• Changing font sizes in code