<p>In C#.NET I am trying to programmatically change the color of the border in a group box.</p>

<p>Update:  This question was asked when I was working on a winforms system before we switched to .NET.</p>

I'm not sure this applies to every case, but thanks to this thread, we quickly hooked into the Paint event programmatically using:
```
```
GroupBox box = new GroupBox();
[...]
box.Paint += delegate(object o, PaintEventArgs p)
{
    p.Graphics.Clear(someColorHere);
};
```
```
Cheers!