Using C# and WinForms, I am trying to display a trackbar value in a textbox. I thought it would be simple enough, and I used the code from the Microsoft Visual studio website. However it simply doesn't work. Here is the code I have:

```
private void trackBar1_Scroll(object sender, System.EventArgs e)
        {
            // Display the trackbar value in the text box.
            textBox1.Text = "" + trackBar1.Value;

        }

```

If it makes a difference, the trackbar is getting its min/max values from numeric up down boxes, changeable by the user.