
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