Search code examples
c#dialogdirectory

"SelectFolderDialog" in .NET


There is no SelectFolderDialog in .NET but It is present itself in Visual Studio 2010.

I was wondering if there is any external .net component like this form.

Here is the VS2010 Dialog :

SelectFolderDialog

Please Note that I dont want to use the FolderBrowserDialog and I need to get the Specific UI described in the SelectFolderDialog


Solution

  • To gain access to the posh new Vista folder selection dialog then I believe that you need to either:

    1. Use a third party component, or
    2. Use the native IFileDialog component.

    Option 2 is easy enough using the Windows API CodePack. You need to include the FOS_PICKFOLDERS option. The CodePack comes with lots of examples. I commend it to you.