Windows forms application doesn’t allow you change the border color of the controls out of the box. However, this can be achieved by overriding the paint event of the control. Below is the sample for applying the border color for a label.
private void Label1_Paint(object sender, PaintEventArgs e) { e.Graphics.DrawRectangle(new Pen(Color.Red), new Rectangle(0, 0, ((Label)sender).Width - 1, ((Label)sender).Height - 1)); }
Similar way, you can change the appearance of any control the way you want to.
Shared by : Jebarson Jabamony
Pingback: Tweets that mention Changing the Border Color of Windows Form Controls | Daily .Net Tips -- Topsy.com