Re: OpenDialog



Stark wrote:
I want my user to choose a file in a folder among those staring with some characters in their name. I do this using the filter property. This does not avoid the user entering a totally different filename in the filename edit. How can I avoid this ? Can I disable the filename edit ? Or is there another solution ?

Handle the OnCanClose event. In it, look at the dialog's current FileName or Files properties.

--
Rob
.



Relevant Pages

  • Re: OpenDialog
    ... This does not avoid the user entering a totally different filename in the filename edit. ...
    (comp.lang.pascal.delphi.misc)
  • Re: OpenDialog
    ... I do this using the filter property. ... This does not avoid the user entering a totally different filename in the filename edit. ...
    (comp.lang.pascal.delphi.misc)
  • Re: OpenDialog
    ... I do this using the filter property. ... This does not avoid the user entering a totally different filename in the filename edit. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Unable opening a file, when filename + path are very long
    ... The only thing to avoid this is, teach your users to save the content in the file and not in the name of the file. ... But still with shorter names you came in trouble, ... After I renamed the filename to something shorter, ... I assume this has something to do with a bad namingpolicy an more ...
    (microsoft.public.win2000.security)
  • Re: download counter?
    ... create table counter (filename varchar(100), ... Better then redirecting is to read file in php script, send to browser and write to sql table after a file is complete send. ... This avoid a situation when user cancel download. ...
    (comp.lang.php)