Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 604
Shamim Hafiz - MSFT Avatar asked Sep 20 '11 10:09

Shamim Hafiz - MSFT


People also ask

What does Open file dialog do?

OpenFileDialog component opens the Windows dialog box for browsing and selecting files. To open and read the selected files, you can use the OpenFileDialog. OpenFile method, or create an instance of the System.


1 Answers

openFileDialog1.FileNames.Length

like image 186
Frank Allenby Avatar answered Nov 14 '22 22:11

Frank Allenby