private void submitBtn_Click(object sender, EventArgs e) { try { WindowCustomizationUtility.SetInactiveAccentColor("" + blue + green + red); } catch (ArgumentNullException) { textBoxHash.Text = "Error! Argument is null!"; } catch (ArgumentException) { textBoxHash.Text = "Error! Incorrect value!"; } catch (UnauthorizedAccessException) { textBoxHash.Text = "Error! RegistryKey inaccessible!"; } catch (FormatException) { textBoxHash.Text = "Error! Sliders not set!"; } }
private void button1_Click(object sender, EventArgs e) { WindowCustomizationUtility.SetInactiveAccentColor("ffffff"); }