Reputation: 81
Possible Duplicate: Embedding a File Explorer instance in a WinForms app form
I want a windows explorer style control on my form so i can browse directories for files, and drag them into another section of my form, ideally with filters (eg *.mp3 etc).
I can't find anything that will do exactly as I want. I have found this:
http://hypercoder.com/?page_id=3
I have made the drag and drop work but with no documentation or examples I cannot work out how to double-click into directories in the file viewer and automatically update the tree.
It seems that this type of control must be used all of the time! Does anybody know where I can find something that will work?
TIA
Upvotes: 5
Views: 13991
Reputation: 12089
You can use WebBrowser control, where you can invoke the Navigate() method to a folder path. If you invoke the Navigate() method of a WebBrowser control with a folder path, the WebBrowser will behave same like a windows file explorer.
Upvotes: 2
Reputation: 34592
How about this, a C# File browser, that works just like Windows Explorer.
Hope this helps.
Upvotes: 5
Reputation: 21
Doesn't Winodws 7 provide you with one? WindowsAPI Code Pack also give you one- that works exactly the same way as Windows Explorer, looks the same, accepts files and folders from external resources. Microsoft made it, no doubt it is really good.
Problem - I THINK it only works on Windows 7...Thumbs down :(
Anways, heres the site: http://code.msdn.microsoft.com/WindowsAPICodePack Enjoy!
Upvotes: 2
Reputation: 81
C# .NET 2009
Should have searched stack overflow first. Just found this:
http://gong-shell.sourceforge.net/
and ran a test it looks perfect!
Upvotes: 3