G
Guest
hello
how do i create a dialog to allow the user to choose a folder?
i tried FolderBrowserDialog but encountered a couple of problems:
- when you specify the starting location (property RootFolder) you have
to supply a constant such as MyComputer, you're not allowed to supply a
literal value such as "C:\path\to\whatever".
- once you specify the RootFolder, the user isn't allowed to navigate
any higher than that in the directory tree.
class OpenFileDialog behaves as i need, except that it forces the user
to specify a file, and i want to prompt the user for a directory.
excel VBA supports Application.FileDialog(MsoFileDialogFolderPicker)
which is exactly what i need except that i can't find an equivalent in
VB .NET 2005.
any ideas?
many thanks
eric
how do i create a dialog to allow the user to choose a folder?
i tried FolderBrowserDialog but encountered a couple of problems:
- when you specify the starting location (property RootFolder) you have
to supply a constant such as MyComputer, you're not allowed to supply a
literal value such as "C:\path\to\whatever".
- once you specify the RootFolder, the user isn't allowed to navigate
any higher than that in the directory tree.
class OpenFileDialog behaves as i need, except that it forces the user
to specify a file, and i want to prompt the user for a directory.
excel VBA supports Application.FileDialog(MsoFileDialogFolderPicker)
which is exactly what i need except that i can't find an equivalent in
VB .NET 2005.
any ideas?
many thanks
eric