FolderBrowserDialog

Inheritance Hierarchy

          IComponent

          IFolderBrowserDialog

          FolderBrowserDialog

Description

The FolderBrowserDialog component implements the standard Windows open folder dialog box.

Working with the Component

To provide component work using the RootFolder  and  SelectedPath properties, specify the folder to select from it in the dialog box and the folder, which is focused on opening the dialog box. To initialize the dialog box, call the Execute method in the code. After selecting the folder and clicking the OK button the path to the folder is available in the  SelectedPath property.

Example

Properties of the FolderBrowserDialog Component

  Property name Brief description
Description The Description property determines a title of the window, which displays opened folders.
ComponentCount The ComponentCount property returns the number of child components.
Components The Components property returns the child component.
Data The Data property is used to store any custom data.
Name The Name property determines a component name.
RootFolder The RootFolder property selects a standard folder to be the root folder when the standard Windows open folder dialog box opens.
SelectedPath The SelectedPath property specifies the custom folder, which is searched in the system folder and focused on when a standard Windows open folder dialog box opens.
ShowNewFolderButton The ShowNewFolderButton property determines whether the Create Folder button that is used to create a new folder is displayed.
Tag The Tag property is not used by the compiler. A user can change the value of the Tag property and use it as he wishes.

Methods of the FolderBrowserDialog component

  Method name Brief description
Execute The Execute method initializes the standard Windows open folder dialog box.

See also:

Standard Components