efkefk
June 22nd, 2006, 07:05 AM
Hello,
I am trying to catch the Filenames string from a multiselection of an openFileDialog dialog control. But I do not know how to get the number of selected files. So when I do this:
for (i = 0; i < 1000; i++)
{
filename[i] = openFileDialog.FileNames[i].ToString();
}
This of course fails when there is no more existing openFileDialog.FileNames[i].
So I need to know the number of selected files. Does the openFileDialog give it ? Otherwise how to proceed ?
I am trying to catch the Filenames string from a multiselection of an openFileDialog dialog control. But I do not know how to get the number of selected files. So when I do this:
for (i = 0; i < 1000; i++)
{
filename[i] = openFileDialog.FileNames[i].ToString();
}
This of course fails when there is no more existing openFileDialog.FileNames[i].
So I need to know the number of selected files. Does the openFileDialog give it ? Otherwise how to proceed ?