感谢版主在2楼提供的方法,但是有一点小的修改,解决办法:
如果想在farpoint上面按快捷键,而不被farpoint扑捉,只被窗体捕捉
FarPoint.Win.Spread.InputMap im = new FarPoint.Win.Spread.InputMap();
im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);
------------------------------------------------------------------------
FarPoint.Win.Spread.SpreadActions.MoveToNextRow 这一句应该改成FarPoint.Win.Spread.SpreadActions.None
然后可以 使用 重写窗体的
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
} |