你在Form.Load事件中添加以下代码再试一试:
- Dim im As New FarPoint.Win.Spread.InputMap
- im = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
- im.Put(New FarPoint.Win.Spread.Keystroke(Keys.F4, Keys.None), FarPoint.Win.Spread.SpreadActions.None)
- im = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused)
- im.Put(New FarPoint.Win.Spread.Keystroke(Keys.F4, Keys.None), FarPoint.Win.Spread.SpreadActions.None)
复制代码 |