OpenFileDialog: selecting more than 200 files

  • Thread starter Thread starter Olaf Baeyens
  • Start date Start date
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
 
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.
 
Back
Top