Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am using the folder browser option to select the folders but now my requirement is that I have to make it possible to deisplay both the files and folders in a list so that the user can select the one he wishes to, how to do it
Posted

You can't, with the standard browser controls - files and folder have to be browsed for by different dialogs - and they are sealed so you cannot derive from them.
The only thing I can suggest is that you create a custom dialog, which does what you want - it could include files or folders as required.
 
Share this answer
 
It is not possible using either the FolderBrowserDialog or the OpenFileDialog, and so you would have to create something for yourself. Sorry.
 
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