void RaisOnKeyboardShortCut(KeyBoardShortCutEventArg e) { if (OnKeyboardShortCut != null) { OnKeyboardShortCut(null, e); } }
private void Form1_OnKeyboardShortCut(object Sender, KeyBoardShortCutEventArg e) { if (e.KeyData == (Keys.Control | Keys.A)) { listBox1.Items.Add("Ctrl+A Pressed"); } if (e.KeyData == (Keys.Control | Keys.Tab)) { listBox1.Items.Add("Ctrl+Tab Pressed"); } if (e.KeyData == (Keys.Control | Keys.Shift | Keys.A)) { listBox1.Items.Add("Ctrl+Tab+A Pressed"); } }