1、选择路径
this.folderBrowserDialog1.ShowDialog();
if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
{
textBox1.Text = this.folderBrowserDialog1.SelectedPath;
}
2、设置默认路劲
this.folderBrowserDialog1.SelectedPath = @"d:\123456\xxx";
2024-04-10 17:01:42
1、选择路径
this.folderBrowserDialog1.ShowDialog();
if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
{
textBox1.Text = this.folderBrowserDialog1.SelectedPath;
}
2、设置默认路劲
this.folderBrowserDialog1.SelectedPath = @"d:\123456\xxx";