title: C#: Activate a TextBox when user starts typing
body: <p>I want to activate a search textbox when the user starts to type something (even if the textbox isnt focused right then). I have come as far as setting <code>KeyPreview</code> on the form to <code>true</code>. Then in the KeyDown event handler, I have this:</p>
  
  <pre><code>if(!searchTextBox.Focused)
  {
      searchTextBox.Focus();
  }
  </code></pre>
  
  <p>This almost works. The textbox is focused, but the first typed letter is lost. I guess this is because the textbox never really gets the event, since it wasn't focused when it happend. So, do anyone have a clever solution to how I could make this work like it should?</p>
  
  <p>I would also like some tips to how make this only happen when regular keys are pressed. So not like, arrow keys, modifier keys, function keys, etc. But this I will probably figure out a way to do. The previous issue on the other hand, I am not so sure how I should tackle...</p>