Alternative to FolderBrowserDialog [closed]
Asked Answered
R

4

18

Is there an alternative for selecting folders in C#?

Optimally I'd like to use the OpenFileDialog to select folders, or at least something similar to that.

Rupp answered 17/9, 2012 at 14:6 Comment(2)
You want an alternative to the FolderBrowserDialog that is built into Winforms, but when given two alternatives, you state that you want something built-in..Chlodwig
Ookii Dialogs libraries have an implementation of a folder browser dialog for Windows Forms and WPFInsectivorous
P
8

Here you have and OpenFileOrFolder dialog and here another FolderBrowserDialog both Open Source.

Pensioner answered 17/9, 2012 at 14:8 Comment(3)
That Ookii dialog works really well. Just curious, but is there any non-third alternatives to FolderBrowserDialog? I was hoping there would be a moderately easy way of having an OpenFileDialog that allows you to select folders.Rupp
@Rupp Nop. The BCL doesn't provide you with other alternative. But implemented third-party ones isn't as hard as it seems.Pensioner
I already got the implementation to work with Ookii, but I'd prefer not to use a 3rd party app.Rupp
I
4

Ookii Dialogs libraries have an implementation of a folder browser dialog for Windows Forms and WPF

Ookii Folder Browser Dialog

Ookii.Dialogs.WinForms

https://github.com/augustoproiete/ookii-dialogs-winforms


Ookii.Dialogs.Wpf

https://github.com/augustoproiete/ookii-dialogs-wpf

Insectivorous answered 20/10, 2018 at 21:45 Comment(0)
I
3

For this very reason I developed BetterFolderBrowser. It's a .NET library does just what you need by providing an easy-to-use folder browsing experience that mimics the OpenFileDialog dialog window. Also, since it works as a component, you'll be able to easily tweak its properties in Design Mode. Hope it helps.

Itching answered 26/2, 2019 at 12:34 Comment(0)
W
1

The closest I found myself to what you may want is this:

http://www.codeproject.com/Articles/15059/C-File-Browser

This is a control that you can place on a dialog (form). It allows selecting files or folders. Here is what my implementation looks like:

enter image description here

Westney answered 17/9, 2012 at 14:9 Comment(1)
The Ookii dialog that was posted earlier is almost exactly what I want. It's essentially the openfiledialog, but for folders. Only I'd prefer not to use a third party app.Rupp

© 2022 - 2024 — McMap. All rights reserved.