ACCEPTBUTTON和CANCELBUTTON属性 [英] ACCEPTBUTTON and CANCELBUTTON Property

查看:160
本文介绍了ACCEPTBUTTON和CANCELBUTTON属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
如何在Windows应用程序中的按钮的属性窗口中设置按钮的acceptbutton和cancelbutton属性

Hi all,
How to set acceptbutton and cancelbutton property at property window for buttons in windows application

推荐答案

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

设计中:
http://msdn.microsoft.com/en-us/library/aa984345%28v = vs.71%29.aspx [ ^ ]

祝你好运!
Have a look at this link:
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.cancelbutton.aspx[^]

In designed:
http://msdn.microsoft.com/en-us/library/aa984345%28v=vs.71%29.aspx[^]

Good luck!


您可以在表单上设置这些属性.
选择表单并转到属性窗口,然后将找到两个属性.

这些属性位于表单级别而不位于按钮级别.

问候
Ankit
You can set these properties on form.
Select the form and go to property window then you will find both the properties.

These properties are on form level not on Button level.

Regards
Ankit


AcceptButtonCancelButtonForm的属性,而不是Button本身的属性.
将焦点放在表单上(在IDE中),然后查看属性网格.
AcceptButton and CancelButton are properties of the Form and not of Button itself.
Set focus to your form (at IDE) and have a look at property grid.


这篇关于ACCEPTBUTTON和CANCELBUTTON属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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