P
Phil
Hi All!
I would like to filter files, in a file dialog, with
digits in extension only, i.e., files with extensions
from *.000 to *.999. Since I could not find a joker for a
digit, I made a filter in a brute-force way:
fileDialog.Filter = "Test files (*.000 - *.999)|";
int i;
for(i = 0; i < 999; i++)
fileDialog.Filter += "*." + i.ToString("000") + ";";
fileDialog.Filter += "*." + i.ToString("000") + "|All
files (*.*)|*.*";
Although the fileDialog.Filter is complete (i.e., it is
not truncated), choosing "Test files (*.000 - *.999)|" in
a file dialog filters only files with extensions from
*.000 to *.042. Does anyone know how to filter the whole
range?
Happy New Year to all of you,
Phil
I would like to filter files, in a file dialog, with
digits in extension only, i.e., files with extensions
from *.000 to *.999. Since I could not find a joker for a
digit, I made a filter in a brute-force way:
fileDialog.Filter = "Test files (*.000 - *.999)|";
int i;
for(i = 0; i < 999; i++)
fileDialog.Filter += "*." + i.ToString("000") + ";";
fileDialog.Filter += "*." + i.ToString("000") + "|All
files (*.*)|*.*";
Although the fileDialog.Filter is complete (i.e., it is
not truncated), choosing "Test files (*.000 - *.999)|" in
a file dialog filters only files with extensions from
*.000 to *.042. Does anyone know how to filter the whole
range?
Happy New Year to all of you,
Phil