You may need to use TextChanged instead of using ValueChanged . The value-changed event requires you to press the enter key after changing the value to get a ValueChanged value.
What MSDN says about the NumericUpDown.ValueChanged Event
For the ValueChanged event, the value of the Value property can be changed in the code by pressing the up or down button or a user entering a new value that reads the control. The new value is read when the user presses the ENTER key or moves away from the control . If the user enters a new value and then presses the up or down button, the ValueChanged event will occur twice, MSDN .
Binding a TextChanged event.
private void TestForm_Load(object sender, EventArgs e) { numericUpDown1.TextChanged += new EventHandler(numericUpDown1_TextChanged); }
TextChanged event declaration.
void numericUpDown1_TextChanged(object sender, EventArgs e) { button1.Enabled = true; }
Adil
source share