📜  prive sub enter clicked vb - VBA代码示例

📅  最后修改于: 2022-03-11 14:51:55.733000             🧑  作者: Mango

代码示例1
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