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

  1.  
  • Posted by on January 1st, 1970
This entry was posted in C# and tagged , , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why ask?