Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
3.22/5 (2 votes)
See more:
I want to select multiple images in openFileDialog without using Ctrl or shift or select all or checkboxes. I have used Multiselect property but in it, I have to use things I have mentioned above.
My problem is that suppose user enters any number in textbox present in winForms, example 10, then He should be able to select 10 files in openfiledialog by simply clicking on it one by one.
Thanks in Advance.
Posted

1 solution

Take a look at this question (and answer) on stackoverflow, I think that's it: OpenFileDialog: Select Multiple Files Using a Check Box[^]

You need to build your own OpenFileDialog to achieve this. Create a Class and inherit from FileDialog, because OpenFileDialog is a sealed Class and can not be inherited or extended.

The Customizing OpenFileDialog in .NET (OpenFileDialogEx) Project could give you information to implement a nice Solution. Take a look.
 
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