title: Capture key strokes from any child control at the parent level
body: <p>I have a WinForm control that has many child controls. The parent control will never have focus. I want to handle at the parent level certain key stroke combinations that occur at the child level. Below is a simple example of what I am trying to accomplish. If ChildB (or some control within ChildB) has focus, pressing Ctrl+A should remove ChildB from view and add ChildA.</p>
  
  <pre><code>public partial class ParentControl : UserControl
  {
      ChildControl ChildA = new ChildControl();
      ChildControl ChildB = new ChildControl();
      ChildControl ChildC = new ChildControl();
  
      public ParentControl()
      {
          InitializeComponent();
          Controls.Add(ChildA);
      }
  
      private void CapturedFromCildControl(object sender, KeyEventArgs e)
      {
          if (e.Control &amp;&amp; e.KeyCode == Keys.A)
          {
              Controls.Clear();
              Controls.Add(ChildA);
          }
          if (e.Control &amp;&amp; e.KeyCode == Keys.B)
          {
              Controls.Clear();
              Controls.Add(ChildB);
          }
          if (e.Control &amp;&amp; e.KeyCode == Keys.C)
          {
              Controls.Clear();
              Controls.Add(ChildC);
          }
      }
  }
  </code></pre>