title: Label and Panel border-color not working
body: <p>I wrote the following code for changing the border color of a label but it is not working. It is same as how I gave in the label properties.</p>
  
  <pre><code>void label1_Paint(object sender, PaintEventArgs e)
  {
      ControlPaint.DrawBorder(e.Graphics, label1.DisplayRectangle, Color.Red, ButtonBorderStyle.Solid);
  }
  </code></pre>
  
  <p>I found this code <a href="https://stackoverflow.com/questions/987668/trying-to-change-the-border-color-of-a-label">here</a>.</p>