how to implement Keybord shortcuts in a C# window application
-
hello all, i have a c# window application form in which i have made options through the menustrip like file---> Open-----> New----> EXIT .... etc here i have written the code this.close() for EXIT. and if i run the application and click the EXIT it will close the application Now i want the same thing to be occured if i press ctrl+x through the Keybord. How to code this in c#. Thanks & Regards TJS
-
hello all, i have a c# window application form in which i have made options through the menustrip like file---> Open-----> New----> EXIT .... etc here i have written the code this.close() for EXIT. and if i run the application and click the EXIT it will close the application Now i want the same thing to be occured if i press ctrl+x through the Keybord. How to code this in c#. Thanks & Regards TJS
As far as I know you can set the shortcut from the properties window in visual studio.
-
As far as I know you can set the shortcut from the properties window in visual studio.
-
You are welcome :)
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion
-
As far as I know you can set the shortcut from the properties window in visual studio.
you can also use keydown envent
-
you can also use keydown envent
Why complicate things that Framework can handle itself?
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion