title: Override 'KeyDown' event in .Net Winform Textbox
body: <p>I have created a 'CustomTextBox' class to nevigate focus by 'Enter' and 'Up' key in the .Net Winform development.</p>
  
  <p>I am using given below code to do so.</p>
  
  <pre><code>public class CustomTextBox : System.Windows.Forms.TextBox
      {
          protected override void OnKeyDown(KeyEventArgs e)
          {
              switch (e.KeyCode)
              {
                  case Keys.Return:
                      this.FindForm().GetNextControl(this, true);
                      break;
                  case Keys.Up:
                      this.FindForm().GetNextControl(this, false);
                      break;
              }
          }
      }
  </code></pre>
  
  <p>Here, I am using <b>'FindForm()' </b> method to get form container for the current TextBox, because I am thinking that '<b>FindForm()</b>' method could have it's own heaviness to access it.</p>
  
  <p>So my question is, Can I have different method or code to access current textbox's container form?</p>
  
  <p>OR Do you have any idea to do the same by other ways ?</p>
  
  <p>Thanks in advance.</p>
  
  <p>(Could anybody having idea for this? Looking for solution.)</p>