|
-
Jan 19th, 2007, 03:50 PM
#1
Thread Starter
Addicted Member
[2005] folderbrowserdialog use custom rootfolder
is there are way to specify a different rootfolder other than from the list proposed...???
-
Jan 19th, 2007, 04:22 PM
#2
Addicted Member
Re: [2005] folderbrowserdialog use custom rootfolder
 Originally Posted by lplover2k
is there are way to specify a different rootfolder other than from the list proposed...???
isn't that in the properties of the folderbrowserdialog? If you set the initial directory to D:/, wouldn't it be the D:/, rather than whatever it is before?
-
Jan 19th, 2007, 04:23 PM
#3
Re: [2005] folderbrowserdialog use custom rootfolder
yes, but only special folders. You can see the different special folder options you can pick by looking at the intellisense enumeration when writing the code.
for example, this will make the root the windows system folder.
VB Code:
FolderBrowserDialog1.RootFolder = Environment.SpecialFolder.System
-
Jan 19th, 2007, 06:45 PM
#4
Re: [2005] folderbrowserdialog use custom rootfolder
The SelectedPath property is type String and can thus be set to any path. The RootFolder property is type SpecialFolder so, as kleinma says, can only be set to one of the SpecialFolder values. SpecialFolder is an enumeration so you cannot just substitute any old path string for one of its values.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|