【C#】获取保存路径
2018-06-12 本文已影响0人
KevinTseng
/// <summary>
/// 获取保存路径
/// </summary>
/// <returns></returns>
private string SelectPath()
{
string path = string.Empty;
System.Windows.Forms.FolderBrowserDialog fbd = new System.Windows.Forms.FolderBrowserDialog();
if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
path = fbd.SelectedPath;
}
return path;
}