美文网首页
【C#】获取保存路径

【C#】获取保存路径

作者: KevinTseng | 来源:发表于2018-06-12 19:57 被阅读0次
/// <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;
}

相关文章

网友评论

      本文标题:【C#】获取保存路径

      本文链接:https://www.haomeiwen.com/subject/ogbreftx.html