📜  c# 如何从用户获取文件路径 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:39.136000             🧑  作者: Mango

代码示例2
FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.Description = "Custom Description"; 

if (fbd.ShowDialog() == DialogResult.OK)
{
    string sSelectedPath = fbd.SelectedPath;
}