In the C / S C # developers, the user can customize the selected folder path, the effect is as follows:
First entrusted to a folderBrowserDialog From
Then double-click Select button as follows:
private void btnSelectFolder_Click(object sender, EventArgs e)
{
folderBrowserDialog1.ShowDialog();
txtFilePath.Text = folderBrowserDialog1.SelectedPath;
}
Reproduced in: https: //www.cnblogs.com/springyangwc/archive/2011/03/07/1975377.html