textbox1.Text = ten.ToString();

The Text property of a TextBox is of type string, but you are trying to assign an int to it. The "ToString()" method of an object returns a string representation,...