Windows 窗体 YesNo 消息框 - 按钮文本
在 Windows 窗体应用程序中,我有一个带有 YesNo 按钮的 MessageBox。我想更改按钮上的文本(从“是”、“否”更改为自定义内容)。
Possible Duplicate:
How to change button text for Yes & No buttons on MessageBox.Show Dialog?
In a Windows Forms application I have a MessageBox with YesNo buttons. I want to change the text on the buttons (from "Yes", "No" to something custom).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我是你,我会创建自己的 MessageBox 对话框。这并不难,我相信您能够比破解标准 MessageBox 更快地完成此操作。
If I were you I'd create my own MessageBox dialog. It's not that hard and I'm sure you'd be able to do this faster than hacking the standard MessageBox.
winforms MessageBox 唯一可能的“自定义”是使用 创建MessageBox时的MessageBoxButton枚举。
它相当有限,因此寻找第三方消息框或创建自己的对话框可能是更好的选择。
Your only possible "customization" with the winforms MessageBox is to use the MessageBoxButton enumeration when creating the MessageBox.
It is fairly limited, so looking for a third party message box or creating your own dialog box may be a better choice.