带有自定义按钮文本的Msgbox [英] Msgbox with custom button text
本文介绍了带有自定义按钮文本的Msgbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么有一个带有两个按钮的msgbox,验证"和取消"?
谢谢
Furqan
Hi,
How can I have a msgbox with two buttons, Validate and Cancel?
Thanks
Furqan
推荐答案
使用两个按钮Validate和Cancel以及消息标签来制作表单.
在表单上设置属性,使ValidateAcceptButton
并取消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 ValidateAcceptButton
and CancelCancelButton
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.cancelbutton.aspx[^]
这篇关于带有自定义按钮文本的Msgbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文