title: C# - KeyDown Event, FunctionKeys and TextBox
body: <p>Here is code for a form with a button(not shown) and a textbox.  Pressing any key other than function keys causes the KeyDown Event to fire as expected, the textbox is selected, the cursor flashes and the character of the subsequent keystroke appears in the textbox.  When pressing a function key however, although the textbox is selected, the cursor does not flash and the character of the very next keystroke does not appear in the textbox.  The characters of subsequent keystrokes do appear as expected.</p>
  
  <pre><code>    public partial class Form1 : Form
  {
      public Form1()
      {
          InitializeComponent();
      }
  
      private void Form1_KeyDown(object sender, KeyEventArgs e)
      {
          textBox1.Select();
      }
  }
  </code></pre>
  
  <p>I have been able to circumvent this problem by overriding the ProcessCmdKey method but I am curious to know how to do it with KeyDown.</p>
  
  <p>Thanks!!</p>