R
Ray Mitchell
Hello,
I'm using VS2005 Pro & WinXP. I have the following code to open a
FolderBrowserDialog, with its initial path set to the directory specified by
"oldDirectoryName", which does exist.
FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
folderBrowserDialog.ShowNewFolderButton = allowCreateNewDirectory;
folderBrowserDialog.SelectedPath = oldDirectoryName;
DialogResult result = folderBrowserDialog.ShowDialog();
if (result == DialogResult.OK)
return folderBrowserDialog.SelectedPath;
return oldDirectoryName;
When the folderBrowserDialog.ShowDialog(); statement is executed sometimes
the dialog opens and works perfectly but a large percentage of the time it
never opens and my application just hangs until I kill it. I'm running in
the debug mode and I've tried stepping into that function but it will go no
farther and just hangs without showing me any more code. Any ideas?
Thanks,
Ray
I'm using VS2005 Pro & WinXP. I have the following code to open a
FolderBrowserDialog, with its initial path set to the directory specified by
"oldDirectoryName", which does exist.
FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
folderBrowserDialog.ShowNewFolderButton = allowCreateNewDirectory;
folderBrowserDialog.SelectedPath = oldDirectoryName;
DialogResult result = folderBrowserDialog.ShowDialog();
if (result == DialogResult.OK)
return folderBrowserDialog.SelectedPath;
return oldDirectoryName;
When the folderBrowserDialog.ShowDialog(); statement is executed sometimes
the dialog opens and works perfectly but a large percentage of the time it
never opens and my application just hangs until I kill it. I'm running in
the debug mode and I've tried stepping into that function but it will go no
farther and just hangs without showing me any more code. Any ideas?
Thanks,
Ray