* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
1.8 KiB
title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
| title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||
|---|---|---|---|---|---|---|---|---|
| FolderBrowserDialog Component Overview | 03/30/2017 |
|
|
796b622c-3ba9-4356-93bb-e217fc52f2c7 |
FolderBrowserDialog Component Overview (Windows Forms)
The Windows Forms xref:System.Windows.Forms.FolderBrowserDialog component is a modal dialog box that is used for browsing and selecting folders. New folders can also be created from within the xref:System.Windows.Forms.FolderBrowserDialog component.
Note
To select files, instead of folders, use the OpenFileDialog component.
The xref:System.Windows.Forms.FolderBrowserDialog component is displayed at run time using the xref:System.Windows.Forms.CommonDialog.ShowDialog%2A method. Set the xref:System.Windows.Forms.FolderBrowserDialog.RootFolder%2A property to determine the top-most folder and any subfolders that will appear within the tree view of the dialog box. Once the dialog box has been shown, you can use the xref:System.Windows.Forms.FolderBrowserDialog.SelectedPath%2A property to get the path of the folder that was selected.
When it is added to a form, the xref:System.Windows.Forms.FolderBrowserDialog component appears in the tray at the bottom of the Windows Forms Designer in Visual Studio.