title: vb.net key combination
body: <p>I'm trying to capture two key presses in my VB.net application, for this example CTRL + B, the code below doesn't work but it does for single keys. I have tried setting keypreview as true but this has no effect.</p>
  
  <pre><code>  Private Sub main_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles mybase.KeyDown
              If e.KeyCode = Keys.ControlKey And e.KeyCode = Keys.B Then
                  MsgBox("CTRL + B Pressed !")
              End If
          End Sub
      End Class
  </code></pre>
  
  <p>Thanks</p>