This project has moved and is read-only. For the latest updates, please go here.

Multiple file filters

May 5, 2009 at 6: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?
May 5, 2009 at 6:28 PM
Your FileFilter is incorrect. Don't use a comma but use a |

May 5, 2009 at 6:53 PM
Thank you for the quick reply. When I use the FileFilter like this


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?
May 6, 2009 at 7: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.