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 ?
If you want to continue using that control, I would suggest you
simply test the file name on return and force another Dialog
pop up until they cancel it or get it correct.
Other wise, you'll need to subclass that control and monitor
the windows messages going to that edit box.. Much like adding
a OnKeyDoww,Up etc to the control.

Unless I'm over looking something.

http://webpages.charter.net/jamie_5";

.



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 tried this, but if I catch a wrong filename in the OnCanClose event, I didn't find a way to go back to the OpenDialog. ... This does not avoid the user entering a totally different filename in the filename edit. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Show new pictures in image control
    ... Ahhh there was a space in the filename I didn't see - works great now. ... Add pictures to Access, ... based on the contents of a text box control that contains the path to ... VBA I get an error message which says that access can't open the ...
    (microsoft.public.access.forms)
  • Re: flv how to insert in Power Point 2007?
    ... One more point to add regarding the filename of the flv file. ... With the VLC Media Player installed, open PowerPoint. ... Now, right click on the control that has been added, select Properties. ...
    (microsoft.public.powerpoint)