回复 1楼nobody008的帖子
改变鼠标形状可以使用 SetCursor 方法,以下为帮助文档中示例代码:
- FarPoint.Win.Spread.FpSpread fpSpread1 = new FarPoint.Win.Spread.FpSpread();
- FarPoint.Win.Spread.SheetView shv = new FarPoint.Win.Spread.SheetView();
- fpSpread1.Location = new Point(10, 10);
- fpSpread1.Height = 200;
- fpSpread1.Width = 400;
- Controls.Add(fpSpread1);
- fpSpread1.Sheets.Add(shv);
- Cursor setC, getC;
- setC = new Cursor(Application.StartupPath + "\\cellbtn.cur");
- fpSpread1.SetCursor(FarPoint.Win.Spread.CursorType.Normal, setC);
- getC = fpSpread1.GetCursor(FarPoint.Win.Spread.CursorType.Normal);
- listBox1.Items.Add(Cursor.Position.ToString());
复制代码 |