title: C# How Translate Keyboard Input To Text
body: <p>I am using C# 3.0 in the .NET Compact Framework 3.5 and the program needs to be able to run on both Windows Mobile and Windows CE devices.</p>
  
  <p>I created my own custom text box control. It does not inherit from TextBox or any other type of text box control and doing so is not an option. <strong>How can I translate keyboard input into text so I can properly set the Text property of the control to what the user is typing?</strong> As far as the Text property goes, it is just an ordinary string variable and does not need to be any more advanced than the TextBox.Text property.</p>
  
  <p>I know one way is to subscribe to the KeyDown event and translate the KeyEventArgs parameter into text manually for each character. I am hoping there is a better solution where the translation of keyboard input to text is done for me by the framework or the OS.
  Thanks.</p>
  
  <p>What if I was to have an invisible TextBox and channel all the keyboard input to it and set my controls Text property to be the same as the TextBoxe's every time its Text changes. Is there a way to do that?</p>