Does anyone knows how to change text on button in OpenFileDialog in Windows.Forms in C#.NET?
Asked
Active
Viewed 9,243 times
5
-
1IIRC you can't (even can't enherit the dialog). But what do you want to achieve? maybe there's an other solution – RvdK Nov 20 '09 at 11:13
-
1I use OpenFileDialog only to point a path of file. I use it to Opening and Saving files. If i would like to use SaveFileDialog to save files, I whould have to make several changes in code. I wish I could change button open to select. Can it be done with WinAPI perhaps? Regards, Bart. – Bart Socha Nov 20 '09 at 12:24
1 Answers
7
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
- 174
- 2