Question

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.

Was it helpful?

Solution

Try this:

this.AcceptButton = null;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top