FolderBrowserDialog组件选择文件夹

1、选择路径

this.folderBrowserDialog1.ShowDialog();

if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)

{

         textBox1.Text = this.folderBrowserDialog1.SelectedPath;

}

2、设置默认路劲

this.folderBrowserDialog1.SelectedPath = @"d:\123456\xxx";

 

 

你可能感兴趣的:(browser)