Search code examples
c#filecountopenfiledialog

How to know the number of Files opened by OpenFileDialog


I can retrieve the names of individual files and also I can use count in the looping code to get the required value, but is it possible to know this without the iteration. Perhaps, a Property is defined for that.


Solution

  • openFileDialog1.FileNames.Length