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