protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { var e = new CmdKeyEventArgs(keyData); OnCmdKey(e); if (e.Handled) { return(true); } return(base.ProcessCmdKey(ref msg, keyData)); }
protected virtual void OnCmdKey(CmdKeyEventArgs e) { CmdKey?.Invoke(this, e); }