Shahab

Shahab

  • NA
  • 6
  • 6.1k

How to know no file was selected in OpenFileDialog?

Feb 19 2013 4:53 AM
Hi,

I want to use C# OpenFileDialog in my Windows Form application. How could I know if no files are selected ? I tried 

if (OpenFileDialog.FilesNames.Length == 0)

but it didnt work ...

Could you plz help me.

Thansk in advance.

Shahab.

Answers (1)