title: TextBox Accepts Tab key
body: <p>If I set <code>TextBox</code> property <code>AcceptsTab</code> to <code>True</code> this condition in <code>TextBox_KeyDown</code> event isn't working.</p>
  
  <pre><code>if (e.KeyCode == Keys.Tab)
  {
       if ((e.Control) &amp;&amp; (e.Shift))
       {
           e.Handled = true;
           if (Tabs.SelectedIndex &gt; 0)
               Tabs.SelectedIndex = Tabs.SelectedIndex - 1;
           else
               Tabs.SelectedIndex = Tabs.TabPages.Count - 1;
       }
       else if (e.Control)
       {
           e.Handled = true;
           if (chatFormTabs.SelectedIndex &lt; chatFormTabs.TabPages.Count - 1)
               chatFormTabs.SelectedIndex = chatFormTabs.SelectedIndex + 1;
           else
               chatFormTabs.SelectedIndex = 0;
       }
  }
  </code></pre>
  
  <p>I'd like this condition in Form KeyDown event but it's not working for me.</p>
  
  <p>Can anyone suggest me how can I do that:</p>
  
  <ul>
  <li>TextBox will accepts tab key and add "\t" char to current position.</li>
  <li>I'll be able to change tabs by Ctrl+Tab or Ctrl+Shift+Tab.</li>
  </ul>