I need to have an open file dialog for 1000 file types (*.000 - *.999). But adding it to the filter, the dialog gets really slow on choosing file types. Is there anything I can do to speed this up?
string text;
for (int i = 0; i <= 999; i++)
{
text.Append("*." + i.ToString("000") + "; ");
}
string textWithoutLastSemicolumn = text.ToString().Substring(0, text.ToString().Length - 2);
dialog.Filter = "Files (" + textWithoutLastSemicolumn + ")|" + textWithoutLastSemicolumn;