title: How to change Panel Border Color
body: <p>In the properties of a <code>Panel</code> I have set the border style to <code>Fixed Single</code>.<br />
  When I am running my application it has the color gray. I don't know how to change the border color.</p>
  <p>I have tried this in the <code>Paint</code> event handler of the panel:</p>
  <pre><code>private void HCp_Paint(object sender, PaintEventArgs e)
  {
      Panel p = sender as Panel;
      ControlPaint.DrawBorder(e.Graphics, p.DisplayRectangle, Color.Yellow, ButtonBorderStyle.Inset);
  }
          
  </code></pre>
  <p>This displays the border like this:</p>
  <p><a href="https://i772.photobucket.com/albums/yy9/yogeshkmrsoni/giving_zps877730fc.png" rel="nofollow noreferrer"><img src="https://i772.photobucket.com/albums/yy9/yogeshkmrsoni/giving_zps877730fc.png" alt="Screenshot of actual result" /></a></p>
  <p>but I want a fixed single border like this:</p>
  <p><a href="https://i772.photobucket.com/albums/yy9/yogeshkmrsoni/want_zps081e3591.png" rel="nofollow noreferrer"><img src="https://i772.photobucket.com/albums/yy9/yogeshkmrsoni/want_zps081e3591.png" alt="Screenshot of desited result" /></a></p>
  <p>How I make the border in yellow?</p>