System.Windows.Forms.FolderBrowserDialog.RootFolder Property

Gets or sets the root folder where the browsing starts from.

Syntax

[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.SpecialFolderEnumConverter))]
[System.ComponentModel.Localizable(false)]
[System.ComponentModel.DefaultValue(System.Environment+SpecialFolder.Desktop)]
[System.ComponentModel.Browsable(true)]
public Environment.SpecialFolder RootFolder { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Only the specified folder and any subfolders that are beneath it will appear in the dialog box and be selectable. The FolderBrowserDialog.SelectedPath property, along with FolderBrowserDialog.RootFolder, determines what the selected folder will be when the dialog box is displayed, as long as FolderBrowserDialog.SelectedPath is an absolute path that is a subfolder of FolderBrowserDialog.RootFolder (or more accurately, points to a subfolder of the shell namespace represented by FolderBrowserDialog.RootFolder).

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0