Hi Ken
I've tried this and in D6, typing *.* into the file name box doesn't let me see 
all the files. I
set the filter as *.jpg and could only see jpg files. 
You could probably make your own open dialog that only shows the files you 
want. I've got to rush
off to see to my child who's been sent home from school sick but there's 
something like find first
and find next for looking through directories.
Wayne

Borland's Delphi Discussion List <[email protected]> on Saturday, 5 August 2006 
at 10:05 a.m. +0000
wrote:
>Wayne,
>If they type (e.g.) *.* in the file name box, they get to see all files
>and can then select anything.
>I need to support a few (completely different) file types which are
>processed in different ways, but I do not want to allow the user to pick
>some rubbish instead.
>Ken
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>Behalf Of Wayne Roser
>Sent: 04 August 2006 02:05
>To: Borland's Delphi Discussion List
>Cc: [email protected]
>Subject: Re: How to limit user to "filter" file extensions
>
>
>I don't think they can see files that do not have the extensions you
>permit. If you set the FilterIndex property to Text|*.txt, they can only
>see txt files. I imagine that the only way they can see the other files
>is if you set one of your FilterIndex properties to Any|*.* Wayne (D6)
>
>Borland's Delphi Discussion List <[email protected]> on Thursday, 3
>August 2006 at 8:27 p.m. +0000
>wrote:
>>Folx,
>> 
>>I'm sure I must be mssing something obvious here, since it sounds like 
>>something I've done before..
>> 
>>In the file open dialog, how can I prevent the user selecting files 
>>with extensions other than one of the two filter options I have 
>>defined?
>> 
>>Thanks,
>>Ken
>>_______________________________________________
>>Delphi mailing list -> [email protected] 
>>http://www.elists.org/mailman/listinfo/delphi
>
>
>_______________________________________________
>Delphi mailing list -> [email protected]
>http://www.elists.org/mailman/listinfo/delphi
>
>_______________________________________________
>Delphi mailing list -> [email protected]
>http://www.elists.org/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to