private void buttonSquared_Click(object sender, EventArgs e) { double num = this.InputValue; this.textBox.Text = Convert.ToString(num * num); this.inputstatus = false; }