[英]How to set a windows form's AcceptButton to None at run time
要在運行時設置表單的 AcceptButton,我這樣做:
this.AcceptButton = this.btnButtonName;
但是誰能告訴我如何清除表單的 AcceptButton,例如:
this.AcceptButton = None;
謝謝。
嘗試這個:
this.AcceptButton = null;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.