I have set Multiselect to true in order to be able to load several files at once. The problem is that it ignores the order in which the user selects the files, the list of FileNames is always the same (if I select the same set of files in different order).
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
for (int i = 0; i < openFileDialog1.FileNames.Length; i++)
{
string file = openFileDialog1.FileNames[i];
}
}
Is there a way to let the files be in the order the user chooses?
try writing it like this: