views:

610

answers:

2

Does anyone knows how to change text on button in OpenFileDialog in Windows.Forms in C#.NET?

+1  A: 

Take a look at this example on CodeProject: OpenFileDialogEx

Basically, you will need to listen for the WM_ACTIVATE message from the modal dialog and then pass the window handle to System.Windows.Forms.NativeWindow. From there, you can customize the dialog.

I'm not saying this is the only solution, but it looks like it will do the trick with the least amount of work from your end.

Matt
Matt, that helped a lot! Thanks :).
Bart Socha
A: 

If you are insteresed in more deep customization of Open/Save dialogs, you can try our Dialog Workshop.NET components at www.componentage.com. Specifically, Open/Save dialog components allow you to customize buttons/labels texts, dock your own WinForm to the dialog window, etc.

Regards, Alexander

Alex Petrov