I'm trying to make a File and Folder dialog in C#. (Just a warning: I will downvote ALL FolderBrowserDialog
suggestions. That dialog is an abomination of nature)
Currently I'm using the CommonOpenFileDialog
found in the WindowsApiCodePack, which has the property IsFolderPicker
, that makes the dialog a folder picker only.
But my users need to be able to select either a file or a folder.
So I'm looking for a dialog which lets me select both a file and a folder. The means doesn't matter. C#, WPF, WindowsApiCodePack, Ookii dialogs, C++, P/Invoke, Com+, Win32, VB etc...
I just need a control that let me select a file or a folder, that I can call from C#, and that has the default Windows OpenFileDialog look. Is this possible, and how?