FolderBrowserDialog类实现选择打开文件
private void button1_Click(object sender, EventArgs e) { FolderBrowserDialog dilog = new FolderBrowserDialog(); dilog.Description = "请选择文件夹"; if(dilog.ShowDialog() == DialogResult.OK || dilog.ShowDialog() == DialogResult.Yes) { path=dilog.SelectedPath; } }
有志者,事竟成,破釜沉舟,百二秦关终属楚; 苦心人,天不负,卧薪尝胆,三千越甲可吞吴。