5

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

d2dyno
  • 15
  • 2
  • 6
Dave
  • 81
  • 1
  • 1
  • 4
  • For which technology (Winforms, WPF)? and what development environment (Visual Studio X, .NET Y)? – Anthony Mastrean Dec 28 '09 at 21:27
  • You can probably make your own pretty easily, did you try? – Cyclone Dec 28 '09 at 21:35
  • Possible duplicate of [Embedding a File Explorer instance in a Windows Forms application form](https://stackoverflow.com/questions/542378/embedding-a-file-explorer-instance-in-a-windows-forms-application-form) – Cœur Jul 10 '18 at 12:59

4 Answers4

5

How about this, a C# File browser, that works just like Windows Explorer.

Hope this helps.

Alexander
  • 23,432
  • 11
  • 63
  • 73
t0mm13b
  • 34,087
  • 8
  • 78
  • 110
3

C# .NET 2009

Should have searched stack overflow first. Just found this:

http://gong-shell.sourceforge.net/

and ran a test it looks perfect!

Dave
  • 81
  • 1
  • 1
  • 4
2

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!

Coder
  • 21
  • 1
2

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.

Emran Hussain
  • 11,551
  • 5
  • 41
  • 48