I have four numericUpDowns the values of which influence an output control. Thay share a ValueChanged event handler that refreshes the text control accordingly. That’s fine for user changes on the numericUpDown controls themselves. But I also have a button that sets the four numericUpDown control values in a single operation, and I want the output control refreshed once at the end, rather than four times i.e. once per set. How best to arrange this?
I have four numericUpDowns the values of which influence an output control. Thay share
Share
You will either need to detach and reattach the event handlers during set operation or use a boolean flag that you turn on at the start of a set change and turn off at the end to indicate not to process the numeric changes.