How to set a windows form's AcceptButton to None at run time
-
10-07-2019 - |
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.
Solution
Try this:
this.AcceptButton = null;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow