private void buttonSensorsCalibrate_Click(object sender, EventArgs e) { Joycon v = this.joycon; DialogResult result = MessageBox.Show("Place the controller with the stick facing upward on a flat, stable surface and click OK.", "Calibarte Motion Controls", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); if (result == DialogResult.OK) { Cursor tmp = this.Cursor; this.Cursor = Cursors.WaitCursor; v.CalibarteMotionControls(); this.Cursor = tmp; MessageBox.Show("Calibartion finished", "Calibarte Motion Controls"); } }