如何在C Sharp中编辑消息框按钮标题 [英] How to edit messagebox button caption in c sharp

查看:86
本文介绍了如何在C Sharp中编辑消息框按钮标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我是uday satardekar,

我用确定取消按钮显示这样的消息框.

Sir I am uday satardekar,

I am showing message box like this with OK Cancel button.

MessageBox.Show("Result", "Result", MessageBoxButtons.OKCancel);



但是我想要这些按钮的文本,例如确定查看.

可能吗.请告诉我解决方法.
谢谢.



But I want Text of these buttons like OK and View.

Is it possible. Please tell me solution .
Thanks.

推荐答案

您不能在现有的消息框中执行此操作.
但是,您可以创建自己的消息框.参见
自定义消息框 [创建自定义消息框第2部分 [ http://www.dotnetperls.com/customized-dialog [
You cannot do this in the existing message box.
However, you can create your own message box. See
A Custom Message Box[^]
Creating A Custom Message Box Part 2[^]
http://www.dotnetperls.com/customized-dialog[^]


这篇关于如何在C Sharp中编辑消息框按钮标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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