title: C# error with function and textboxes as a parameter
body: <p>I have a problem with writing a function and passing it a parameter.</p>
  
  <p>My problem is that I've created my function called <code>mySum</code>. I've shown the code below.</p>
  
  <p>Note: I've used two text boxes to get the values from the user, and the function should add those two values and show it in <code>MessageBox</code>.</p>
  
  <pre><code>void mySum(int a, int b)
  {
      int ans;
      ans = a + b;
      MessageBox.Show(ans.ToString());
  }
  
  private void button1_Click(object sender, EventArgs e)
  {
      //Here i want to ass two text boxes values as given below.
      mySum(txtbox1.text,txtbox2.text); //Here it shows me the error
  }
  </code></pre>