No files selected in openfiledialog - 05-11-2010 , 09:46 AM
How can I test for openfiledialog OK clicked without any files being
selected? (I'm using it with multiple select as true.)
if openfiledialog1.filenames = nothing then ...
if ubound(openfiledialog1.filenames) = -1 then ...
but both these give compile errors.
Grateful for advice.
Re: No files selected in openfiledialog - 05-11-2010 , 09:58 AM
Am 11.05.2010 15:46, schrieb simonc:
"OK" button if no file is selected.
Maybe you are attempting to check if the "Cancel" button has been pressed?
If Me.OpenFileDialog1.ShowDialog() =
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
|Thread Tools||Search this Thread|