Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
805
Numeric editor up and down arrow use
posted

Hi,

    I have a field, whose edit type is double, wherein the value in that get incremented or decremented when we have the focus on the field and press up or down arrow in the keyboard. How to disable this feature?

Thanks in advance for your help.

Regards,

Balaji Rajendran

Torrance CA, WK.

  • 54937
    Offline posted

    You could handle the control's ExecutingCommand and when the e.Command is MaskedEditorCommands.SpinUp or MaskedEditorCommands.SpinDown, set e.Cancel to true.