回复 1楼lucky的帖子
测试代码如下:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.EditChange += fpSpread1_EditChange;
- }
- void fpSpread1_EditChange(object sender, FarPoint.Win.Spread.EditorNotifyEventArgs e)
- {
- GeneralEditor tx = this.fpSpread1.EditingControl as GeneralEditor;
- tx.KeyDown += tx_KeyDown;
- }
- void tx_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Control && e.KeyCode== Keys.Left)
- {
- Debug.WriteLine("keydown");
- }
- }
复制代码 |