How can I change cursor during dragfilling + pushing ctrl key.

Posted by: wz0627 on 8 September 2017, 2:20 pm EST

  • Posted 8 September 2017, 2:20 pm EST

    Hello.  <img src="/emoticons/emotion-2.gif" alt="Big Smile" />

    I want to implement increment dragfill the same as Excel's one.

    So I need to change mouse cursor during ctrl key down and dragfill like as excel's cursor (Big cross and little cross together).

    But during dragfilling, when I push ctrl key, mouse cursor had changed into default windows arrow cursor.

    I assume that the reason is keydown event handling.

    Is there any solution for this?

    Thank you for reading.

  • Replied 8 September 2017, 2:20 pm EST


    There is no direct way to change the cursor as it is shown in Excel. However, as a workaround you can set an image using SetCursor() and for CursorType.DragFill while Keys.Control is pressed in KeyDown event. Please find the attached image for the same.


      void fpSpread1_KeyDown(object sender, KeyEventArgs e)
                if (ModifierKeys == Keys.Control)
                    Cursor setC, getC;
                    setC = new Cursor(Application.StartupPath + "\\cross.cur");
                    fpSpread1.SetCursor(FarPoint.Win.Spread.CursorType.DragFill, setC);
                    getC = fpSpread1.GetCursor(FarPoint.Win.Spread.CursorType.DragFill);


    Hope this will help. Thanks.


Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels