Deos the filter property on the OpenFileDialog work?


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
 
Ad

Advertisements

P

Paul G. Tobey [eMVP]

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.
 
Ad

Advertisements

J

JamesL

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top