1
Answer

How to know no file was selected in OpenFileDialog?

Shahab

Shahab

11y
868
1
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)