is it possible to open a directory on windows form? and show all its contents just like opening it actually like in windows explorer UI?
how, what is the code for this operation? C# code. i cant figure it out
is it possible to open a directory on windows form? and show all its contents just like opening it actually like in windows explorer UI?
how, what is the code for this operation? C# code. i cant figure it out
The ExplorerBrowser C# sample program shows how to host an Explorer window inside a Windows Forms form or a WPF window.
There are a number of articles on codeproject.com showing how to create a Windows Explorer like UI using standard Winform controls. These look promising:
Windows Explorer in C#
A Windows Explorer in a user control
There are others though.
I'd start with one of these and modify to suit your needs.
Yes - see the folder browser control http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx
You however have to include the shell events when someone double clicks on a file to launch it, such as calling process.start. There are tons of examples out there and many ways to accomplish this. For ex. a quick google search http://www.codeproject.com/KB/miscctrl/FileManager.aspx
Embedding a File Explorer instance in a Windows Forms application form