choose folder using FolderBrowserDialog
Published: 21. January 2009 | Updated: 21. January 2009License: Microsoft Public License (MS-PL)
Categories: File system » Directories, Winforms
Tags: C# Windows Winforms
Import namespaces
using System.Windows.Forms;
Code
FolderBrowserDialog dialog = new FolderBrowserDialog(); if (dialog.ShowDialog() == DialogResult.OK) { string path = dialog.SelectedPath; }
| Send us feedback about this snippet » |





