Multiple file filters

May 5, 2009 at 5:25 PM
It seems I can only specifie one file filter, for example Jpeg. I have tried this but it is not working -

FileFilter=Jpeg (*.jpeg) |*.jpeg, Jpg (*.jpg) |*.jpg, Gif (*.gif) |*.gif, Png (*.png) |*.png

What am I doing wrong?
Coordinator
May 5, 2009 at 5:28 PM
Your FileFilter is incorrect. Don't use a comma but use a |

Example:
JPEG|*.jpg|PNG|*.png|TIFF|*.tiff|GIF|*.gif
May 5, 2009 at 5:53 PM
Thank you for the quick reply. When I use the FileFilter like this

FileFilter=JPEG|*.jpg|PNG|*.png|GIF|*.gif

the opendialog box only shows me the jpg files but I was hoping to see the png and gif files as well. I guess it takes the first filter in the list and shows only those files. What am I missing?
Coordinator
May 6, 2009 at 6:37 AM
It's also possible to include multiple extensions in 1 filter. Information about that is pretty hard to find on the internet.

You need to use the ; to split the extensions, example:

FileFilter=All Images|*.jpg;*.png;*.gif|All Documents|*.doc;*.txt

That should do the trick.