C#获得文件夹的路径

来源:互联网 发布:淘宝3c认证编号查询 编辑:程序博客网 时间:2024/05/23 02:06

转自:http://blog.sina.com.cn/s/blog_684910840101dqb7.html

this.folderBrowserDialog1.ShowDialog();

this.label1.Text = this.folderBrowserDialog1.SelectedPath;
要用到FolderBrowserDialog



双击openFileDialog控件 写上Label1.Text = openFileDialog1.FileName.ToString();
原创粉丝点击