OpenFileDialog: selecting more than 200 files

O

Olaf Baeyens

In .NET v1.1 I am trying to select multiple files using OpenFileDialog like
this

OpenFileDialog openFileDialog=new OpenFileDialog();
openFileDialog.Multiselect=true;
i f(openFileDialog.ShowDialog() == DialogResult.OK) {
...
}

Now I discover that there is a hardcoded limit of 200 files.
But I must select way more than 200 files, so how can I go around this
limit?

Also has VS 2005 still this limit?

Thanks
 
N

Nicholas Paldino [.NET/C# MVP]

Olaf,

This is a function of the OS, not of .NET. The file dialog you see is a
shell for the one provided by the OS.

However, if you have a need to select 200 files at once, I think you
need to re-evaluate your user interface. You should have the user provide a
pattern, or some other filter criteria, at which point you would find the
files that fit that criteria.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top