FolderBrowserDialog选择目录操作Demo
2015-03-24 10:29:49 访问(1519) 赞(0) 踩(0)
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button_选择执行程序_Click(object sender, EventArgs e)
{
FolderBrowserDialog fd = new FolderBrowserDialog();
if (fd.ShowDialog() != DialogResult.OK)
return;
if (fd.SelectedPath == null || fd.SelectedPath.Length == 0)
return;
comboBox_程序目录.Text = fd.SelectedPath;
}
上一条:
下一条:
相关评论
发表评论