private void btnCompute_Click(object sender, EventArgs e) { String expression = tbInput.Text; Calculate cal = new Calculate(expression); double output = cal.output(); tbOutput.Text = output.ToString(); }