private void btnReopenAsAdmin_Click(object sender, EventArgs e) { btnReopenAsAdmin.Enabled = false; try { if (AmbLib.StartAsAdmin()) { this.Close(); } return; } catch (Exception ex) { CppUtils.Alert(this, ex); } finally { btnReopenAsAdmin.Enabled = true; } }