Is there any better way to close a form with escape key than making a button "Close", setting it as CancelButton, and then write inside a code to close like this :
?
thx in advance
Code:
private void buttonClose_Click(object sender, System.EventArgs e)
{
this.Close();
}
thx in advance