PC Review


Reply
Thread Tools Rate Thread

Deos the filter property on the OpenFileDialog work?

 
 
JamesL
Guest
Posts: n/a
 
      10th Jun 2005
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


 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      10th Jun 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" <(E-Mail Removed)> wrote in message
news:Qrlqe.2410$(E-Mail Removed)...
>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
>
>



 
Reply With Quote
 
Sergey Bogdanov
Guest
Posts: n/a
 
      10th Jun 2005
Or you can implement you own version of OpenFileDialog. See Peter Foot's
article how it can be done:
http://www.peterfoot.net/FolderBrows...WindowsCE.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
>
>

 
Reply With Quote
 
JamesL
Guest
Posts: n/a
 
      13th Jun 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:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:Qrlqe.2410$(E-Mail Removed)...
>>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
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Filter property on OpenFileDialog Control JamesL Microsoft Dot NET Compact Framework 0 8th Jun 2005 05:41 AM
OpenFileDialog.DereferenceLinks property does not work? Yuri O Microsoft C# .NET 0 27th Nov 2004 07:41 PM
How to make the RestoreDirectory property work in an OpenFileDialog Johann Blake Microsoft C# .NET 1 16th Sep 2004 06:27 PM
How to make the RestoreDirectory property work in an OpenFileDialog Johann Blake Microsoft VB .NET 1 16th Sep 2004 06:27 PM
SumProduct with AND inside....deos not work =?Utf-8?B?TWVnZ2ll?= Microsoft Excel Worksheet Functions 2 3rd May 2004 02:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:33 PM.