I have created an app that makes use of the FolderBrowserDi alog.
Upon building the app, installing and running it, and invoking the form
using the dialog, it hangs upon folder selection and goes "not responding"
Upon debugging, it hangs as well upon executing the line that extracts the
selected folder without further explanation. All looks well in the debugger
prior to executing the line marked with <<<<<< below. When I step over that
line, it hangs.
With FolderBrowserDi alog1
..RootFolder = Environment.Spe cialFolder.Desk top
..SelectedPath = Environment.Spe cialFolder.Desk top
..Description = "Please select the desired template(s)..."
If .ShowDialog = DialogResult.Ca ncel Then
Exit Sub
End If
If .ShowDialog = DialogResult.OK Then
DestinationPath = .SelectedPath <<<<<<<<
End If
End With
I noticed the same behavior from a downloaded exe created in VS2005 using
the folderbrowser --- thus, I have two indenpent instances of the
browserdialog hanging, one not of my creation.
Any insights?
--
Grumpy Aero Guy