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; } }
标签:文件,FolderBrowserDialog,DialogResult,dilog,ShowDialog,选择,打开 From: https://www.cnblogs.com/luyj00436/p/17208452.html