Does anyone knows how to change text on button in OpenFileDialog in Windows.Forms in C#.NET?
有谁知道如何在Windows的OpenFileDialog中更改按钮上的文本吗?形式在c#。net ?
1 个解决方案
#1
7
Take a look at this example on CodeProject: OpenFileDialogEx
看看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.
基本上,您需要从模态对话框中侦听WM_ACTIVATE消息,然后将窗口句柄传递给System.Windows.Forms.NativeWindow。从那里,您可以自定义对话框。
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.
我并不是说这是唯一的解决方案,但是看起来它可以用最少的工作量来达到目的。
#1
7
Take a look at this example on CodeProject: OpenFileDialogEx
看看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.
基本上,您需要从模态对话框中侦听WM_ACTIVATE消息,然后将窗口句柄传递给System.Windows.Forms.NativeWindow。从那里,您可以自定义对话框。
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.
我并不是说这是唯一的解决方案,但是看起来它可以用最少的工作量来达到目的。