文件夹选择器

1

FolderBrowserDialog fbd = new FolderBrowserDialog();
 //先显示对话框,然后判断用户是否正确的选择了文件 
            if (fbd.ShowDialog() == DialogResult.OK)
            {
                // 你的 处理文件路径代码 
                string FileName = fbd.SelectedPath;
                MessageBox.Show("消息内容:" + FileName, "这是标题", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

Done

原文地址:https://www.cnblogs.com/xingyyy/p/3708877.html