Click here to Skip to main content
16,011,567 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
Looking to find out if the .Net framework has been updated to include a shell folder dialog. I know it is possible through an API wrapper such as this Folder Browser component for .NET


The wrapper example works fine, but it is several years old so I am wondering if the .Net Framework now includes this functionality?

I am aware of the basic FolderBrowser dialog, but that is too limited for my purposes. I like the user to be able to have the same shell folder browser functionality that is demonstrated by the above example. Mainly the ability to type in a path manually rather than always be forced to browse from the root level; ie if a user knows the path, then allow the user to type it (or copy\paste). Also the shell folder browser has auto complete when typing in a path. The basic FolderBrowser dialog seems just a tad dated and limited.

Thanks
Posted
Updated 22-Dec-10 22:37pm
v3

Sorry, I do have some answer, but it is not going to be very good. Hope, it may help.

I know two approaches.
One of them is using CommonDialog.HookProc method.
I never used it, but saw some relevant works on CodeProject.

This is one:
Extending the save file dialog class in .NET[^].

(Do you need System.Windows.Forms? WPF is another story...)
Sorry, this is about safe file dialog, not folder dialog, but perhaps you will be able to catch the idea. Also, you might search and dig out some more similar solutions to find something closer using the same idea.

Another approach is... making all the functionality from scratch. You know... not so easy... can be out of style...

Unfortunately, it does not look that painless way exists.

Any other idea, anyone? Would be highly valuable.
 
Share this answer
 
v2
Comments
Dalek Dave 23-Dec-10 20:09pm    
Good Answer.
Espen Harlinn 26-Feb-11 11:23am    
Good answer - my 5
Sergey Alexandrovich Kryukov 26-Feb-11 17:57pm    
Thank you.
--SA
AFAIK we do not have anything else avaiable in .Net.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900