c# - Windows Forms FolderBrowserDialog hangs the application -
with winforms, when right click on folder or try delete folder within folderbrowserdialog
window becomes irresponsive , i've force-close it.
here's 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; } }
the problem system wide, control correctly behaving in incorrect way (irony).
Comments
Post a Comment