Further to my suggestion above to create a simple application. Create a form with two updown controls and a text box. Make sure the names match those used in the following code sample. Add the method name
numericUpDown_ValueChanged
to the ValueChanged event of both controls and the code below to your main form code.
private void numericUpDown_ValueChanged(object sender, EventArgs e)
{
if (sender == numericUpDown1)
{
numericUpDown2.Value = numericUpDown1.Value;
}
StringBuilder sb = new StringBuilder();
sb.Append("NUD1: ");
sb.Append(numericUpDown1.Value.ToString());
sb.Append(", NUD2: ");
sb.Append(numericUpDown2.Value.ToString());
textBox1.Text = sb.ToString();
}
Play around with the code and the values as necessary.