windorm选择文件夹

string _path;
        private void btnChoose_Click(object sender, EventArgs e)
        {       
            //选择文件夹
            FolderBrowserDialog path = new FolderBrowserDialog();
            path.ShowDialog();
            _path = path.SelectedPath;
           MessageBox.Show(_path );
        }

猜你喜欢

转载自blog.csdn.net/qq_40433102/article/details/84794309