📅  最后修改于: 2022-03-11 14:51:55.733000             🧑  作者: Mango
Private Sub Form_PreviewKeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PreviewKeyDownEventArgs) Handles Form.PreviewKeyDown
If e.KeyCode = Keys.Enter Then
'code here
End If
End Sub