Close windows form on click escape key in C# Anonymous User619707-Oct-2013How to close a windows form on click the escape key using C#?c#c# Updated on 08-Oct-2013
Anonymous User
08-Oct-2013Firstly 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.