int a = Convert.ToInt32(textBox2.Text); decimal b = Convert.ToDecimal(textBox3.Text); decimal result = a * b; textBox4.Text = result.ToString();