Windows Develop Bookmark and Share   
 index > Windows Forms General > How to create Directory open dialogue like a File opne dialogue?
 

How to create Directory open dialogue like a File opne dialogue?

Hi,

I would like have a browse button, onclick there should appear a dialogue to select directories (just like to File open dialogue where we can select multiple files) with multiselect option.

I checked the available controls in .net framework 2.0 but could not find some relevent option.

I was wondering how to achive that functionality?

Thanks,

Munawar

Muna  Tuesday, December 26, 2006 9:38 AM
You'd normally use the FolderBrowseDialog for this. However, a fundamental problem you'll have here is that the TreeView control doesn't allow selecting multiple items. Just about the only alternative I can think of is to allow the user to fill a ListBox with folders using a plain FolderBrowseDialog or a custom TreeView. Search www.codeproject.com with "shell browse" for the latter...
nobugz  Tuesday, December 26, 2006 2:42 PM
You'd normally use the FolderBrowseDialog for this. However, a fundamental problem you'll have here is that the TreeView control doesn't allow selecting multiple items. Just about the only alternative I can think of is to allow the user to fill a ListBox with folders using a plain FolderBrowseDialog or a custom TreeView. Search www.codeproject.com with "shell browse" for the latter...
nobugz  Tuesday, December 26, 2006 2:42 PM

Hi,

I got alot of examples from codeproject which got me better to adopt some reasonable approach.

Thanks ....

Munawar

Muna  Wednesday, December 27, 2006 9:52 AM

You can use google to search for other answers

Custom Search

More Threads

• Logged In Windows User
• resize behavior strange
• MenuStrip Accessibility Problem
• MenuStrip Help
• Overriding Default Value of Existing Property
• including windows.h in the Form1.h file
• How to automatically shedule my visual C# application
• Modal Window from secondary forms
• Best way to get the offset from UTC from Standard (not daylight) time
• Tooltip on the disabled control.