|
-
August 2nd, 2008, 04:40 AM
#4
Re: SpecialFolder in FolderBrowserDialog
I'm by no means a guru 
But here, you will be dealing with CLSIDs
Each special folder on the system has a CLSID, for example, My Documents look like :
Code:
::{450d8fba-ad25-11d0-98a8-0800361b1103}
My Computer Looks like :
Code:
::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
Recycle Bin, looks like :
Code:
::{645FF040-5081-101B-9F08-00AA002F954E}
Control Panel will look like :
Code:
::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\ ::{21EC2020-3AEA-1069-A2DD-08002B30309D}
All CLSIDs are stored in the Registry, usually at HKEY_CLASSES_ROOT\CLSID. Some of the special CLSIDS can also be found in the Registry keys where the related namespace extensions are specified as in the key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ CurrentVersion\Explorer\ControlPanel\NameSpace\ where you can find all CLSIDs related to the Control Panel.
You may want to check these out :
http://www.pctools.com/guides/registry/detail/73/
http://www.codeguru.com/vb/gen/vb_sy...php/c13987__1/
With the first link, it explains how to to what you want, it looks like it at least 
In the second link, my article, it will give you a bigger background on CLSIDs, and how to open them.
With the FolderBrowser, you can then just set the InitialDirectory to the CLSID that you want.
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
|