Windows 窗体 YesNo 消息框 - 按钮文本

发布于 2024-08-17 01:11:15 字数 327 浏览 2 评论 0原文

可能的重复:
如何更改按钮文本是的& MessageBox.Show Dialog 上没有按钮?

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

深府石板幽径 2024-08-24 01:11:15

如果我是你,我会创建自己的 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.

夜空下最亮的亮点 2024-08-24 01:11:15

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文