带有自定义按钮文本的Msgbox [英] Msgbox with custom button text

查看:374
本文介绍了带有自定义按钮文本的Msgbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我怎么有一个带有两个按钮的msgbox,验证"和取消"?
谢谢
Furqan

Hi,
How can I have a msgbox with two buttons, Validate and Cancel?
Thanks
Furqan

推荐答案

使用两个按钮Validate和Cancel以及消息标签来制作表单.
在表单上设置属性,使Validate AcceptButton并取消CancelButton

http://msdn.microsoft.com/en-us/library/system.windows.forms.form.cancelbutton.aspx [ ^ ]
Make a form with two buttons Validate and Cancel, and a label for message.
Set properties on form, make Validate AcceptButton and Cancel CancelButton

http://msdn.microsoft.com/en-us/library/system.windows.forms.form.cancelbutton.aspx[^]


这篇关于带有自定义按钮文本的Msgbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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