Пример #1
0
 void ToolBoxProcessCommandKey(object sender, ProcessCmdKeyEventArgs e)
 {
     if (DispatchCommandKey(e.KeyData))
     {
         e.Processed = true;
     }
 }
Пример #2
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            ProcessCmdKeyEventArgs args = new ProcessCmdKeyEventArgs(keyData);

            ProcessCommandKey(this, args);
            if (args.Processed)
            {
                return(true);
            }

            return(base.ProcessCmdKey(ref msg, keyData));
        }