• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 608
  • Last Modified:

OpenDialog

I have an OpenDialog and one Button
When i click on button OpenDialog.execute.
Now, i in the OpenDialog i don't want let anywone to delete the files or directory
How can i do this (for RightClick, and DEL Keyboard)
Thanks
Hope i was clear
0
fradolcino
Asked:
fradolcino
1 Solution
 
alsantosCommented:
Hi fradolcino, I think you can add the [ofOldStyleDialog] to OpenDialog1.Options before execute the dialog. I don't know if It could help you, but, at the old style dialog, no one can delete a file.

the example code:

  Opendialog1.Options := Opendialog1.Options + [ofOldStyleDialog];
  OpenDialog1.Execute;


alsantos
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now