public static string Get_Path(string description)
{
FolderBrowserDialog folder = new FolderBrowserDialog() { Description = description, ShowNewFolderButton = true };
if (folder.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
return folder.SelectedPath;
}
else
{
return "";
}
}
C# 浏览文件夹
最新推荐文章于 2024-08-05 22:01:02 发布