Windows Forms Keyboard Shortcut on Control


/ Published in: C#
Save to your folder(s)

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);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.