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

Community
  • 1
  • 1
Murat Korkmaz
  • 1,329
  • 2
  • 19
  • 37

1 Answers1

1

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.

  • Agree.. Messing with standard dialogs is usually not worth it IMHO – RobS Sep 06 '10 at 12:40
  • @Murat thats not true, you need to set the property Multiselect to true than you have multiselect in OpenFileDialog. – Damian Leszczyński - Vash Sep 06 '10 at 12:44
  • 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 Korkmaz Sep 06 '10 at 12:45
  • 1
    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 Korkmaz Sep 06 '10 at 12:55