How to close a windows form on click the escape key using C#?
Close windows form on click escape key in C#
Ask by Anonymous User
Updated 08 Oct 2013
Firstly you need to handle the Form Key Down event and then check the event key code is equal to Keys.Escape and the in the true section you can write the form close statement.