"on the line: TextBox2.Text = Math.Round(Convert.ToString(TextBox2.Text), 2);,
Math.Round(Convert.ToString(TextBox2.Text), 2); has a red line under it. Error saying: The best overloaded method match for 'System.Math.Round(decimal)' has some invalid arguments. And the second error says: Argument 1: cannot convert from 'string' to 'decimal'. I am just trying to round to the nearest whole number."
Um. Are you in the habit of converting strings into other strings? :laugh:
Possibly, what you meant to say was:
TextBox2.Text = Math.Round(Convert.ToDouble(TextBox2.Text), 2).ToString();
But... since you add two integers to produce the string value in the first place, rounding is (by definition) not going to make any difference at all... :laugh:
Sorry, but that code as a whole doesn't make a lot of sense. What are you actually trying to do?