title: Programmatically made button cannot change hover color c# winforms
body: <p>I cannot find a way to change the <em>hover color</em> when delopying it <em>programmatically</em> in c# winforms.</p>
  <p>I hope someone can help me!</p>
  <p>Code:</p>
  <pre><code>Button btn = new Button
  {
      Name = &quot;btn1&quot;,
      Width = 250,
      Height = 250,
      Location = new Point(0, 15),
      BackColor = Color.Transparent,
      FlatStyle = FlatStyle.Flat,
      BackgroundImage = img,
      BackgroundImageLayout = ImageLayout.Stretch,
  };
  </code></pre>