Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8325019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:17:18+00:00 2026-06-09T00:17:18+00:00

I have a numericUpDown control (Windows Forms). I want to listen to the ValueChanged

  • 0

I have a numericUpDown control (Windows Forms).

enter image description here

I want to listen to the ValueChanged event.

I set it in the properties and it works.

But:

I want that i can “scroll” up or down. (If I make this longer it will be faster)

When I’m done with the “scroll”, I want that the event xyz is fired now and not during the scrolling.

How can I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:17:20+00:00Added an answer on June 9, 2026 at 12:17 am

    Try using the mouseup event. It fires when you take your finger off of the left mouse button, so in theory it should solve your issue.

    [Edited by James]
    Try this control on your form.

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    
    namespace Example.CustomControl
    {
        /// <summary>
        /// Provides an extra event for the numericUpDown control that fires after the value stops scrolling.
        /// </summary>
        public class NumericDelayedChange : NumericUpDown
        {
            /// <summary>
            /// Flag that the value has actually changed.
            /// </summary>
            /// <devdoc>
            /// Just in case the control was clicked somewhere other than the up/down buttons.
            /// </devdoc>
            private bool valueHasChanged = false;
    
            /// <summary>
            /// Fires when the value has stopped being scrolled.
            /// </summary>
            public event EventHandler OnAfterScollValueChanged;
    
            /// <summary>
            /// Captures that value as having changed.
            /// </summary>
            /// <param name="e"></param>
            protected override void OnValueChanged(EventArgs e)
            {
                valueHasChanged = true;
                base.OnValueChanged(e);
            }
    
            /// <summary>
            /// Captures the mouse up event to identify scrolling stopped when used in combination with the value changed flag.
            /// </summary>
            /// <param name="mevent"></param>
            protected override void OnMouseUp(MouseEventArgs mevent)
            {
                base.OnMouseUp(mevent);
                if (mevent.Button == System.Windows.Forms.MouseButtons.Left)
                {
                    PerformOnAfterScollValueChanged();
                }
            }
    
            /// <summary>
            /// Captures the key up/down events to identify scrolling stopped when used in combination with the value changed flag.
            /// </summary>
            /// <param name="mevent"></param>
            protected override void OnKeyUp(KeyEventArgs e)
            {
                if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Down)
                {
                    PerformOnAfterScollValueChanged();
                }
                base.OnKeyUp(e);
            }
    
            /// <summary>
            /// Checks the value changed flag and fires the OnAfterScollValueChanged event.
            /// </summary>
            private void PerformOnAfterScollValueChanged()
            {
                if (valueHasChanged)
                {
                    valueHasChanged = false;
                    if (OnAfterScollValueChanged != null) { OnAfterScollValueChanged(this, new EventArgs()); }
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form with a System.Windows.Forms.NumericUpDown control. Say that the range is from
I have a Form and numericupdown control located on it. I want that in
I have a numericupdown control on a C# Windows Form, and am interested in
I have a NumericUpDown control that is bound to an int property on a
i have a NumericUpDown control and want to update its contents from the registry.
I have implement the ValueChanged event, but I found it will be triggered only
I have a numericUpDown picker that's set to a range of acceptable years, defaulting
I have Timer3 tick event inside i set the timer3 interval to the numericupdown
I'm using visual studio and have some numericUpDown controls that I have set values
I have created a user control tha inherits from the NumericUpDown Control. Is it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.