To set a form's AcceptButton at runtime, I'm doing this:
this.AcceptButton = this.btnButtonName;
But can anyone tell me how to clear the form's AcceptButton, something like:
this.AcceptButton = None;
Thanks.
Try this:
this.AcceptButton = null;