title: vb.net enter key press on a button
body: <p>I have a form with a button and when i click TAB key the button got selected but when I click ENTER key this code is not executed.My code is, </p>
  
  <pre><code>Private Sub Button1_Keypress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Button1.KeyPress
  If Asc(e.KeyChar) = 13 Then
   MsgBox("DO SOMETHING") 
  End If 
  End Sub 
  </code></pre>