title: Change WinForms button highlight color
body: <p>I found <a href="https://stackoverflow.com/questions/9260303/how-to-change-menu-hover-color-winforms">this page</a>, which outlines how to change the rendering for a MenuStrip and its items.</p>
  
  <p>I want to use this, but the problem is that the highlight color when you hover over a button doesn't match it.</p>
  
  <p>Is there any way to change the highlight color from blue to yellow?  I've tried using the MouseHover and MouseLeave events, but for some reason they're really slow, and they change the button to a solid color, which looks bad, but leaves a border on the edge of the button that doesn't change.</p>
  
  <p>In the designer:</p>
  
  <pre><code>this.ButtonName.MouseHover += new System.EventHandler(button_mousehover);
  </code></pre>
  
  <p>And then in the Code:</p>
  
  <pre><code>private void button_mousehover(object sender, EventArgs e)
  {
      Button btn = sender as Button;
      btn.BackColor = Color.Yellow;
  }
  </code></pre>
  
  <p>Is there anything as easy as in the link I posted above to change the highlight color from blue to something else?</p>
  
  <p>Here's the code for changing the rendering of the menu strip:</p>
  
  <pre><code>private void myForm Load(object sender, EventArgs e)
  {
      myMenuStrip.Renderer = new MenuRenderer();
  {
  
  private class MenuRenderer : ToolStripProfessionalRenderer
  {
      public MenuRenderer() : base(new MyColors()) { }
  }
  
  private class MyColors : ProfessionalColorTable
  {
      public override Color MenuItemSelectedGradientBegin
      {
          get { return Color.Orange; }
      }
      public override Color MenuItemSelectedGradientEnd
      {
          get { return Color.Yellow; }
      }
      public override Color MenuItemPressedGradientBegin
      {
          get{ return Color.Yellow; }
      }
      public override Color MenuItemPressedGradientEnd
      {
          get { return Color.Orange; }
      }
      public override Color MenuItemSelected
      {
          get { return Color.Gold; }
      }
  }
  </code></pre>
  
  <p>So it'll change the background of a hovered-over menu item to an orange-yellow gradient, change it to a yellow-orange gradient on click, and any item in the menu will have a gold highlight on hovering.</p>
  
  <p>What I'm trying to do is do that last part (change the highlight to gold/yellow) for the buttons in my form.</p>