title: Capture keys.TAB on KeyDown
body: <p>I am trying to capture TAB keypress on Keydown Event.
  I can see another post on <a href="https://stackoverflow.com/questions/11969141/how-to-fire-an-event-when-the-tab-key-is-pressed-in-a-textbox">How to fire an event when the tab key is pressed in a textbox?</a></p>
  
  <p>However, On the above link, posted solution is not working for me which I mentioned below.</p>
  
  <pre><code>Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) _
                           Handles TextBox1.KeyDown
      If e.KeyCode = Keys.Tab Then
         e.SuppressKeyPress = True
         'do something
      End If
  End Sub
  </code></pre>
  
  <p>For the testing purpose, I have added 2 simple textboxes on FORM1 and write the below code to capture the TAB on KeyDown event.</p>
  
  <pre><code>Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
      If e.KeyCode = Keys.Tab Then
          e.SuppressKeyPress = True
          MsgBox("TAB DOWN")
      End If
  End Sub
  
  Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
      Me.Text = e.KeyChar
  End Sub
  
  Private Sub TextBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp
      If e.KeyCode = Keys.Tab Then
          MsgBox("TAB UP")
      End If
  End Sub
  
  Private Sub TextBox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Leave
      Me.Text = "LEAVE"
  End Sub
  </code></pre>
  
  <p>My above code should suppose to display a message box on KeyDown when TAB is press. It's not working.</p>
  
  <p>Please let me know what I am doing wrong.
  Thanks in advance!!!</p>