Filtering multiple types in open dialog (C#)

Hi,

I have the following C# code to filter file types in my open file dialog:


private void mnuOpen_Click(object sender, EventArgs e)
{
    OpenFileDialog dlg = new OpenFileDialog();
    dlg.Filter = "DGN Files (*.dgn)|*.dgn|DWG Files (*.dwg)|*.dwg"
                    + "|All Files (*.*)|*.*";

I want to combine the .dgn and .dgw filters so that it shows them both at the same time (i.e. Drawing Files (*.dgn, *.dgw)). Could anybody tell me how to do this please ?

Thanks,Tom

dlg.Filter = “DGN/DWG Files (*.dgn; .dwg)|.dgn; *.dwg”;

I was going crazy looking for that. Had tried almost every combination of comma, spaces, dash, to separate the filters.

Very useful.