0

With winforms, when I right click on a folder or try to delete a folder within the FolderBrowserDialog the window becomes irresponsive and I've to force-close it.

Here's the code:

private void btnOpenFileDialog_Click(object sender, EventArgs e)
{
    folderBrowserDialog1.SelectedPath = txtBoxLog.Text;
    folderBrowserDialog1.RootFolder = Environment.SpecialFolder.MyComputer;
    if (folderBrowserDialog1.ShowDialog()==DialogResult.OK)
    {
        txtBoxLog.Text = folderBrowserDialog1.SelectedPath;
    }
}
4

1 回答 1

-1

问题是系统范围的,因此控件以不正确的方式正确运行(具有讽刺意味)。

于 2013-04-18T10:17:06.127 回答