FolderBrowserDialog
FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); folderBrowserDialog1.Description = "请选择一个文件夹"; if (folderBrowserDialog1.ShowDialog() == DialogResult.OK) MessageBox.Show(folderBrowserDialog1.SelectedPath); |