private void RefreshValue(  NumericUpDown nud,  int value)
 {
     // Update the value of the NumericUpDown control,
       // if the value is different than the current value.
       // Refresh the control, causing an immediate repaint.
       if ( nud.Value != value )
       {
     nud.Value = value;
     nud.Refresh();
       }
 }