Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top