我实现的代码如下,可是要按两次回车键
Private Sub FpSpread1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles FpSpread1.KeyDown
If e.KeyCode = Keys.Enter Then
FpSpread1.ActiveSheet.SetActiveCell(FpSpread1.ActiveSheet.ActiveRowIndex + 1, FpSpread1.ActiveSheet.ActiveColumnIndex)
End If
End Sub |
|