How can I select more than one folder using FolderBrowserDialog ?
Currently I can browse only one folder at time using below code.
FolderBrowserDialog dialog;
private void btnbrowse_Click(object sender, EventArgs e)
{
dialog = new FolderBrowserDialog();
if (dialog.ShowDialog() == DialogResult.OK)
{
txtFolderPath.Text = dialog.SelectedPath;
}
}
How can I browse multiple folders ?
Best Answer
There is no native support for multifolder selection with
FolderBrowserDialog
, but you can build your own dialog in combination with treeview and 'multiselection'.Take a look:
http://www.codeproject.com/Articles/13375/File-Explorer-using-Treeview-controller-in-C-2-0
http://www.arstdesign.com/articles/treeviewms.html