Hi, is there a way to limit the FolderBrowserDialog to a drive like d: so that the user can only choose a folder in that drive
Thanks
Printable View
Hi, is there a way to limit the FolderBrowserDialog to a drive like d: so that the user can only choose a folder in that drive
Thanks
I dont think so. You'd be best off creating your own custom FolderBrowseDialog that implements this functionallity.
Hello, set the RootFolder property of the FolderBrowserDialog to whatever location you need. Whatever you specify as the Root, the user cannot navigate any higher.
IE
The user can now not navigate higher than the AppData folder in the dialog box.Code:FolderBrowserDialog1.RootFolder = Environment.SpecialFolder.ApplicationData
FolderBrowserDialog1.ShowDialog()
You really should do your homework...Quote:
Originally Posted by Atheist
To back this up: http://msdn.microsoft.com/en-us/libr...er(VS.80).aspxQuote:
Originally Posted by Crushinator
The problem is that the RootFolder property only accepts a SpecialFolder value, which does not include specific drives. If this is possible you would have to do it through unmanaged code I think.