title: How to set up shortcut key for Button
body: <p>Can anyone help me understand how to set a shortcut key in the following code?
  It should be Alt+X (Exit is the name of the button).
  I tried <code>cmd_Exit.text="&amp;Exit"</code>, but it printed the "&amp;" and shortcut key was not set up.</p>
  
  <pre><code>Private Sub cmdExit_Click(sender As Object, e As EventArgs) Handles cmdExit.Click
      'cmdExit.Capture()
      Dim response = MsgBox("Are you sure you want to exit?", CType(MsgBoxStyle.YesNo + MsgBoxStyle.Exclamation, MsgBoxStyle), "Leaving?")
      If response = MsgBoxResult.Yes Then     'if yes exit the application
          Application.Exit()
      End If
  End Sub
  </code></pre>