Tag Archives: action gt

(C#) Windows Forms Keyboard Shortcut on Control

Easily create Windows Forms Shortcuts with this class. For example: A shortcut to catch pasting via Ctrl + V. Shortcut sc = new Shortcut(this, new Action(() =>  MessageBox.Show(“Data pasted!”))); sc.Keys.Add(Keys.ControlKey); sc.Keys.Add(Keys.V);

Posted in C# | Also tagged , , , , , , , | Leave a comment