Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

changing button text in OpenFileDialog in C#.net

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

like image 319
Bart Socha Avatar asked Nov 20 '09 11:11

Bart Socha


1 Answers

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.

like image 152
Matt Avatar answered Sep 26 '22 02:09

Matt