/// <summary> /// 初始化fp /// </summary> public void initFP() { try { this.fpSpread1.Sheets[0].OperationMode = FarPoint.Win.Spread.OperationMode.RowMode; InputMap im; im = fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused); im.Put(new Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.None); im = fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused); im.Put(new Keystroke(Keys.Down, Keys.None), FarPoint.Win.Spread.SpreadActions.None); im = fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused); im.Put(new Keystroke(Keys.Up, Keys.None), FarPoint.Win.Spread.SpreadActions.None); im = fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused); im.Put(new Keystroke(Keys.Escape, Keys.None), FarPoint.Win.Spread.SpreadActions.None); // im=fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused ); // im.Put(new Keystroke(Keys.F2,Keys.None),FarPoint.Win.Spread.SpreadActions.None); // // im=fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused ); // im.Put(new Keystroke(Keys.F3,Keys.None),FarPoint.Win.Spread.SpreadActions.None); // // im=fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused ); // im.Put(new Keystroke(Keys.F4,Keys.None),FarPoint.Win.Spread.SpreadActions.None); } catch {} }