C1Numericedit - subpress mouse scroll wheel

Posted by: horst on 22 January 2020, 6:53 pm EST

    • Post Options:
    • Link

    Posted 22 January 2020, 6:53 pm EST

    Hi,

    I use C1Numericedit with Up/Dn-Button.

    It worls correctly - also change the values with the mouse.

    Can I use Uo/DN-Button ´, but subpress the reaction on the mouse scroll wheel?

    Is there a way the get the information, that the user used the mouse scroll wheel?

    Thank you , Horst

  • Posted 22 January 2020, 8:46 pm EST

    Hello,

    To achieve the desired result you need to create a custom control using C1NumericEdit and override its OnMouseWheel method as given in code snippet below :

    protected override void OnMouseWheel(MouseEventArgs e)
    {
     this.Invalidate(); 
    }
    

    Please go through the attached sample demonstrating the same.

    Regards,

    Prabhat Sharma.

    C1NumericEditDemo.zip

Need extra support?

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

Learn More

Forum Channels