AcceptButton and CancelButton Properties of the Form Control

Under Form we have 2 properties AcceptButton and CancelButton which allows us to map buttons on a form with keyboard keys. AcceptButton property if bound with a button that button gets clicked whenever we press Enter key of key board. CancelButton property if bound with a button that button gets clicked whenever we press Esc key of key board. To set them go to properties of form select either AcceptButton or CancelButton properties which will display the list of buttons on form select a button from them.


Quantitative Aptitude
Reasoning
Programming
Interview