I am currently working on a windows form and i want to minimize the form when pressed the escape key , i tried the cancelButton property for form ,and bind the button which is
private void btnHide_Click(o bject sender, EventArgs e)
{
Hide();
}
pressing the button by mouse hides the form, but pressing esc which is bound with btnHide is not working ,
Is there sth that i am missing ?
Thanks.
private void btnHide_Click(o bject sender, EventArgs e)
{
Hide();
}
pressing the button by mouse hides the form, but pressing esc which is bound with btnHide is not working ,
Is there sth that i am missing ?
Thanks.
Comment