Click to See Complete Forum and Search --> : FileDialog


ReynoldsBK
April 15th, 2003, 09:44 AM
How do you change the text in the Open box when you use OpenFileDialog? I am trying to use this file dialog to delete files instead of trying to open them. Thanks

pareshgh
April 15th, 2003, 01:53 PM
so does it means that
you want to show some filename in FileDialog and then you click ok it will delete ?

-Paresh

ReynoldsBK
April 15th, 2003, 03:15 PM
Yes, I would like it to show the files like the OpenFileDialog function, then the user would choose the file, then when you click ok the file would be deleted.

pareshgh
April 15th, 2003, 03:17 PM
actually you can use the filter to filter out the functions, check the local VS.NET help the sample is given there or type the class name in MSDN you will find the help .




Paresh

ReynoldsBK
April 16th, 2003, 08:44 AM
Actually what I am looking for is a way to change the text in the "Open" button to "Delete" in the right hand lower corner when you do openFileDialog1.ShowDialog() call.

pareshgh
April 16th, 2003, 01:00 PM
i don't think so some direct way is there,
if you consider using
Container, you can try out pulling the inner components but that would be tedious job working with hashcode,
instead you can show the box and when said ok then delete file or design your own with getting the source files, and have a delete button.

Paresh