Reputation: 1473
Event not activates on entering values by using numbers on keyboard. It only activates when you use the up and down arrows. What I want is, It must activate on every keyboard stroke like textbox textchanged event.
I've tried few things but user had to press enter for activating the event. I don't want that.
It must be same like textbox event. Any ideas ? or another tool maybe ?
Upvotes: 4
Views: 4017
Reputation: 8902
NumericUpDown control fires the value changed event in the following scenarios
Instead of ValueChanged you can use KeyPress
event which fires for every keyboard key stroke.(but keep in mind this event will only fire for keyboard numeric key press)
private void numericUpDown1_KeyPress(object sender, KeyPressEventArgs e)
{
}
Upvotes: 1