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

Reply via email to