using (var dialog = new OpenFileDialog())
{
dialog.CheckFileExists = false;
dialog.ValidateNames = false;
dialog.Title = "选择文件夹";
if (dialog.ShowDialog() == DialogResult.OK)
{
txtLocalPath.Text = Path.GetDirectoryName(dialog.FileName);
}
}
exeture OpenFileDialog the process will die
exeture OpenFileDialog the process will die