C / S to select folder path

In the C / S C # developers, the user can customize the selected folder path, the effect is as follows:

2011030718074064.jpg

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;
        }
You can achieve the effect described above.

Reproduced in: https: //www.cnblogs.com/springyangwc/archive/2011/03/07/1975377.html

Guess you like

Origin blog.csdn.net/weixin_34185320/article/details/93340849