The FolderBrowserDialog Control
Occasionally, you’ll have a need to allow your users to select a folder instead of a file. Perhaps your application performs backups, or perhaps you need a folder to save temporary files. The FolderBrowserDialog control displays the Browse For Folder dialog box, which allows your users to select a folder. This dialog box does not display files—only folders, which provides an obvious way to allow your users to select a folder needed by your application.
Like the other dialog boxes that you have examined thus far, the FolderBrowserDialog control can also be used as a class declared in code. The Browse For Folder dialog box, shown in below Figure without any customization, allows the user to browse for and select a folder. Notice that there is also a Make New Folder button that allows a user to create and select a new folder.
Chapter 7.7.1: The Properties of FolderBrowserDialog
Chapter 7.7.2: Using the FolderBrowserDialog Control
Chapter 7.7.3: The ColorDialog Control
|