private void buttonHome_Click(object sender, EventArgs e) { // All of this operation has been placed inside a "catch-all" exception // handler. Normally you would catch the more specific exceptions that // the API call might throw (details of which can be found in the // Kinesis .NET API document). try { // We pass in a wait timeout of zero to indicates we don't care how // long it takes to perform the home operation. _kCubeDCServoMotor.Home(0); } catch (Exception ex) { MessageBox.Show("Unable to return device to home position\n" + ex); } }