Click or drag to resize

BrowseForFolder Class

A dialog that can be used to select a folder.
Inheritance Hierarchy

Namespace:  Jam.Shell.WPF.Controls
Assembly:  ShellBrowserWPF (in ShellBrowserWPF.dll) Version: 1.3.1
Syntax
public class BrowseForFolder : CommonDialog

The BrowseForFolder type exposes the following members.

Constructors
  NameDescription
Public methodBrowseForFolder
Initializes a new instance of the BrowseForFolder class
Top
Properties
  NameDescription
Public propertyFileSystemOnly
Only allow to select elements with an associated file system path.
Public propertySelectedFolderIdList
After execution contains the Folder that was selected.
Public propertySelectedPath
After ShowDialog gets the path that was selected. If this property is set before displaying the dialog sets the path the dialog initially selects.
Public propertyTitle
Gets or sets the title of the dialog.
Top
Methods
Remarks
This component works like the OpenFileDialog, but instead of selecting files, it allows to select a folder.
Examples
browseForFolder.Title = "Please select a folder";
browseForFolder.SelectedPath = "c:\\";
if (browseForFolder.ShowDialog())
  MessageBox.Show(browseForFolder.SelectedPath);
See Also