private void FXStudioForm_FormClosed(object sender, FormClosedEventArgs e) { try { RenderMethods.DestroyInstance(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }