June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to display a standard dialog box for directory selection.
In .NET 1.1, use the FolderBrowserDialog class in the System.Windows.Forms namespace. In .NET 1.0, you must derive a class from System. Windows.Forms.Design.FolderNameEditor so that you can use the protected FolderBrowser class it contains.
The .NET Framework includes several classes that wrap standard dialog boxes, such as the OpenFileDialog and SaveFileDialog classes. However, .NET 1.0 does not include any class for selecting a directory. .NET 1.1 (included with Visual Studio .NET 2003) resolves this problem by adding the FolderBrowserDialog class. This recipe demonstrates how to use this class, and how ...
Read now
Unlock full access