commondialog is not listing all available files 
Author Message
 commondialog is not listing all available files

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



Sat, 22 Dec 2001 03:00:00 GMT  
 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



Sat, 22 Dec 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Multi Select File list in CommonDialog

2. I am trying to update a record, i am not using data control

3. I am trying to update a record, i am not using data control

4. CommonDialog.ShowOpen throwing file not found error

5. Using Commondialog (VB6 Ent) to select a folder - NOT a file

6. Available fields Not Available under Grid Control Properties

7. File List Box not showing files

8. file spec not available for Excel

9. Help files not available

10. #Classes not available in .mde file MsAccess97

11. Could not load an object because its not available on this machine

12. Could not load an object because its not available on this machine

 

 
Powered by phpBB® Forum Software