Open File Dialog not showing Files 
Author Message
 Open File Dialog not showing Files

I am using the following statement in my test application:

OpenFileDialog1.Filter = "Bitmaps (*.bmp) | *.bmp | JPG Pics (*.jpg) |
*.jpg"
It shows me two choices (in the drop download) when the dialog is opened.
One ofr BMP files and other for JPG.  when I select .BMP selection it does
not show any files in the current folder. I only see the sub-folders but not
the bmp files in it. On the other hand when jpg choice is selected, I cann
all the jpg files.

PS: If I manually type in *.bmp in the gialog, then I can see all the bmp
files.

Any ideas?

Thank you.



Sat, 10 Dec 2005 09:41:13 GMT  
 Open File Dialog not showing Files

Quote:
> I am using the following statement in my test application:

> OpenFileDialog1.Filter = "Bitmaps (*.bmp) | *.bmp | JPG Pics (*.jpg)
> | *.jpg"
> It shows me two choices (in the drop download) when the dialog is
> opened. One ofr BMP files and other for JPG.  when I select .BMP
> selection it does not show any files in the current folder. I only
> see the sub-folders but not the bmp files in it. On the other hand
> when jpg choice is selected, I cann all the jpg files.

> PS: If I manually type in *.bmp in the gialog, then I can see all the
> bmp files.

> Any ideas?

Remove (trailing) spaces, at least in the extension parts:
OpenFileDialog1.Filter = "Bitmaps (*.bmp)|*.bmp|JPG Pics (*.jpg)|*.jpg"

It works with *.jpg because there's no trailing space character (" *.jpg"
vs. " *.bmp ")

--
Armin



Sat, 10 Dec 2005 13:27:03 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How To show only directories with Common Dialog Box for open files

2. MS Common Dialog Control : How can i select(open) dirs, not files

3. How can i select (open) dirs, not files with the MS Common Dialog Control

4. How to open HTML file from VB6 code and let this HTML file show up

5. How to open HTML file from VB6 code and make this HTML file show up

6. selecting multiple files with file open common dialog?

7. Open file dialog box and upload file

8. File List Box not showing files

9. Common Dialog's File Open dialog question

10. Open a file open dialog in Project

11. opening a browse or file open dialog

12. File not Found / File already open

 

 
Powered by phpBB® Forum Software