更改按钮文本在打开文件对话框中的C#.NET [英] changing button text in OpenFileDialog in C#.net

查看:310
本文介绍了更改按钮文本在打开文件对话框中的C#.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何更改文字按钮,在打开文件对话框中Windows.Forms的在C#.NET?

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

推荐答案

看看这个例子在$ C $的CProject:的OpenFileDialogEx

Take a look at this example on CodeProject: OpenFileDialogEx

基本上,你将需要侦听来自模态对话框的WM_ACTIVATE消息,然后在窗口句柄传递给System.Windows.Forms.NativeWindow。从那里,你可以自定义对话框。

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.

这篇关于更改按钮文本在打开文件对话框中的C#.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆