Multiple Ext. in Open File Dialog

i'm trying to add Multiple Ext. in Open File Dialog
Like, when user choose "All Supported Files" in "Filter of type:" he can see both *.txt and *.rtf files
How to do this?
Thanks
[211 byte] By [THE_BAT] at [2007-11-19 10:01:20]
# 1 Re: Multiple Ext. in Open File Dialog
OpenFileDialog dialog = new OpenFileDialog();
dialog.Filter = "All supported types (*.rtf;*.txt)|*.rtf;*.txt|All files (*.*)|*.*||";

if (dialog.ShowDialog() == DialogResult.OK)
{
// ok
}

Darwen.
darwen at 2007-11-9 1:48:48 >