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

Re: Deos the filter property on the OpenFileDialog work? by Paul

Paul
Fri Jun 10 15:04:13 CDT 2005

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.

"JamesL" <forgeddaboudit@spamblock.duh> wrote in message
news:Qrlqe.2410$jX6.2004@newsread2.news.pas.earthlink.net...
>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
>
>



Re: Deos the filter property on the OpenFileDialog work? by Sergey

Sergey
Fri Jun 10 15:19:51 CDT 2005

Or you can implement you own version of OpenFileDialog. See Peter Foot's
article how it can be done:
http://www.peterfoot.net/FolderBrowserDialogForWindowsCE.aspx


--
Sergey Bogdanov
http://www.sergeybogdanov.com


JamesL wrote:
> 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
>
>

Re: Deos the filter property on the OpenFileDialog work? by JamesL

JamesL
Sun Jun 12 20:48:19 CDT 2005

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


"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
wrote in message news:O8luRefbFHA.3488@tk2msftngp13.phx.gbl...
> 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.
>
> "JamesL" <forgeddaboudit@spamblock.duh> wrote in message
> news:Qrlqe.2410$jX6.2004@newsread2.news.pas.earthlink.net...
>>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
>>
>>
>
>