Show detailed Folder Browser from a PropertyGrid

Here is a custom UITypeEditor that allows you to use the Vista Folder Browser: You can use it like any other editor: [EditorAttribute(typeof(FolderNameEditor2), typeof(System.Drawing.Design.UITypeEditor))] It relies on a custom FolderBrowser2 class that I have written for the occasion. Of course, this will work only on Windows Vista and higher. On previous Windows version, there is … Read more

Select folder dialog WPF

Windows Presentation Foundation 4.5 Cookbook by Pavel Yosifovich on page 155 in the section on “Using the common dialog boxes” says: “What about folder selection (instead of files)? The WPF OpenFileDialog does not support that. One solution is to use Windows Forms’ FolderBrowseDialog class. Another good solution is to use the Windows API Code Pack … Read more