views:

68

answers:

1

Possible Duplicate:
changing button text in OpenFileDialog in C#.net

Have a good day,

Is there a way to override Open button in .NET OpenFileDialog?

I need to Change the button text and override OnClick event.

If this is not possible can I put a custom button over the Open button (but at the most top X order)?

--

BR Murat

+1  A: 

Everything is possible, but the question is what You really want to achieve by this strange behavior ?

What's wrong with standard usage of the OK button ? Where You pick the path and do what You want to.

Vash
Agree.. Messing with standard dialogs is usually not worth it IMHO
RobS
@Murat thats not true, you need to set the property Multiselect to true than you have multiselect in OpenFileDialog.
Vash
I need to scan several folders at once and use standard OpenFileDialog to allow to select multiple folders at once. When I select a few folders and click on the Open button it opens the first selected folder in the dialog. I added custom panel with custom button to this dialog. But 8 of 10 testers clicks on Open button instead of the Scan button. And begin to scan each folder one by one.
Murat
Vash, yes I can set Multiselect to true, and select multiple folders. But once I click on the Open button it opens the first select folder! So this button works only if the files are selected
Murat