Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make FolderBrowserDialog show short cuts 1

Status
Not open for further replies.

YerMom

Programmer
Oct 3, 2006
127
US
I have a GUI application that displays a FolderBrowserDialog. One of my users asked if I can make the dialog show shortcuts to folders.

I don't see any properties that would allow me to specify that. On the MSDN site I found the following:

Code:
This class provides a way to prompt the user to browse, create, and eventually select a folder. Use this class when you only want to allow the user to select folders, not files. Browsing of the folders is done through a tree control. Only folders from the file system can be selected; virtual folders cannot.
Does "virtual folders" refer to folder shortcuts?
Does anyone know for sure if I can or cannot show shortucts?

Thanks.

 
Possibly that is what they mean by a virtual folder, I'm not sure. The reason you can't select shortcuts though is because a shortcut is a file not a folder. A dialog box selector would have to read every shortcut in the selected directory to then show only those that link to a directory. There is nothing wrong with that it is just beyond what the standard windows select directory dialog does.

-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
 
Sorwen,

Thanks. It makes sense that a shortcut is a file. I'll have to do some thinking about how to proceed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top