I have created a windows forms in which on certain button click i show FolderBrowserDialog. After the user selects a folder and click on Ok button of FolderBrowserDialog i have done some work in the Ok click part of FolderBrowserDialog.
For example
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
generateFiles();
}
The Problem is: folderBrowserDialog doesent disappear completely untill generateFiles(); method has completely done it's job.
This behaviour has made my form look bad, because while generateFiles() method is working i have used progressbar to indicate the progress of generateFiles(); method.
How can i make FolderBrowserDialog disappear completely so that my progressbar looks good.
Please help.
Thanks