This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
How can i create a filter for a openfiledialog that shows only some filetypes.
I know how to create a filter for one filetype but i want to have an option to display many different image-files(png, jpg, bmp, png) in one filter.
take a look at this:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.filedialog.filter.aspx
it has the example there which you can use and copy and rename the file extensions to whichever filter you want to show
Works like a charm.
Tack mattias :)