C# - How to allow multiple filetypes in an OpenFileDialog?

Robin Rodricks picture Robin Rodricks · Aug 31, 2009 · Viewed 7.7k times · Source

I knew this once but I keep forgetting; How do I allow multiple filetypes in one filter entry of the OpenFileDialog?

Text files|*.txt          // this is OK.

Text files|*.txt,*.text   // how do I get this??

Answer

Kobi picture Kobi · Aug 31, 2009

Semicolon:

files|*.txt;*.text