Deos the filter property on the OpenFileDialog work?

  • Thread starter Thread starter JamesL
  • Start date Start date
J

JamesL

I am using an OpenFileDialog control to open some txt files. the files are
named in the format Archive##.txt. If I use *.txt in the filter property
then the dialog is filtered on all .txt files. But if I set the filter
property to Archive*.txt it does no filter to only .txt files beginning with
Archive. It still filters on all *.txt files. Am I using the wrong
wildcard? How should I set the property to show me all .txt files starting
with Archive?

James Lysaght
 
It does work in general, but your case is fairly specific. You might try
Archive??.txt, if there are always two characters there. If that doesn't
work, either, I'd say that you're out of luck.

Paul T.
 
Well, That did not work either.

I guess the simple solution is I will move my archives to a separate folder
where they are the only thing in the folder. That will solve the problem.

Thanks anyway

James
 
Back
Top