要在运行时设置表单的AcceptButton,我这样做:
this.AcceptButton = this.btnButtonName;
但有谁能告诉我如何清除表单的AcceptButton,如:
this.AcceptButton = None;
谢谢.
试试这个:
this.AcceptButton = null;