回复 1楼Soft_Killer的帖子
需要设置相应的快捷键的动作 SpreadAcions.None,请使用以下代码测试:
- Private Sub FpSpread1_KeyDown(sender As Object, e As KeyEventArgs) Handles FpSpread1.KeyDown
- Me.TextBox1.Focus()
- End Sub
- Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
- Dim keymap As New FarPoint.Win.Spread.InputMap()
- keymap = Me.FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
- keymap.Put(New FarPoint.Win.Spread.Keystroke(Keys.Tab, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToFirstColumn)
- keymap.Put(New FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToFirstColumn)
- End Sub
复制代码 |