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.
void label1_Paint(object sender, PaintEventArgs e)
{
ControlPaint.DrawBorder(e.Graphics, label1.DisplayRectangle, Color.Red, ButtonBorderStyle.Solid);
}
I found this code here.