FolderBrowserDialog组件选择文件夹

1、选择路径

this.folderBrowserDialog1.ShowDialog();
if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
{
         textBox1.Text = this.folderBrowserDialog1.SelectedPath;
}

2、设置默认路劲

this.folderBrowserDialog1.SelectedPath = @"d:123456xxx";
原文地址:https://www.cnblogs.com/chenyongblog/p/3257664.html