
commondialog is not listing all available files
You need to set the filter property!
Something like this:
"All files (*.*)|(*.*)|"
Change the | to a CHR(0) if not using the common dialog ocx.
--
Richard Cardarelle
Eclipse Applications
www.eclipseapplications.com
Hello Everyone
I am trying to get VB 5 to properly list all the files in the
commondialog box.
I have used *.*,*.;.* some files have no filenames just extension,
some files have a filename but no extension which I will not explain
why.
I am trying to get VB to list a file called sample.txt, sample and
txt which is in the root. Now when I use the dialog box and change to
the root directory it shows the subdirectories but none of the other
existing files.
I know they exist because the filenames appear in Windows File
Explorer correctly. So what is wrong?
:
:
On Error GoTo DialogError
With CommonDialog1
.CancelError = True
.Filter = "All files (*.*) *.*;*;.*| Text files (*.txt)|*.txt"
.DialogTitle = "Select a file to open"
.ShowOpen
Please respond to this newsgroup.
TIA