title: Implement textbox shortcuts
body: <p>I'm using a component called <code>QTextBox</code> from <a href="http://www.qdevsuite.com/" rel="nofollow">Qios DevSuite</a> in my project. </p>
  
  <p>Similar to what happens by default in .NET <code>TextBox</code>, when user presses <kbd>Control</kbd>+<kbd>Backspace</kbd> on it while typing, instead of deleting the word left from the cursor, character '' is inserted instead.</p>
  
  <p>To resolve this issue, I figured I'd do something like</p>
  
  <pre><code>public class QTextBoxEx : QTextBox
  {
      protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
      {
          if (keyData == (Keys.Control | Keys.Back))
          {
              // here goes my word removal code
              return true;
          }
  
          return base.ProcessCmdKey(ref msg, keyData);
      }
  }
  </code></pre>
  
  <p>Is this a good approach or is there already a .NET built in system to implement this kind of behavior? Also, what would be the "cleanest" way of removing the last word from a search string? (I can think of string.Replace and Regex right now)</p>