title: c# Numericupdown to pass a value to an integer
body: <p>I'm having a problem passing a numericupdown value into an integer.</p>
  <pre><code>private void button5_Click(object sender, EventArgs e)
  {
      int count = numericUpDown1.Value;
      updateCount(count);
  }
  </code></pre>
  <p>So, what I want to do is pass the value of the numericupdown value into an integer named count and then pass the value into a method that updates a table in my database.</p>
  <p>I just started programming C# lately and can't seem to understand some  documentation.</p>