G
Guest
Hi
I have a simple UserControl hosting a couple of other controls, the
BorderStyle = BorderStyle.FixedSingle. All I want to do is change the border
color of the control.
Anyhow got an example on the best approach to do this. I tried the
following which didn't make any difference:
protected override void OnPaint(PaintEventArgs e) {
base.OnPaint(e);
ControlPaint.dr(e.Graphics,
e.ClipRectangle,
SystemColors.Desktop,
ButtonBorderStyle.Solid);
}
Craig
I have a simple UserControl hosting a couple of other controls, the
BorderStyle = BorderStyle.FixedSingle. All I want to do is change the border
color of the control.
Anyhow got an example on the best approach to do this. I tried the
following which didn't make any difference:
protected override void OnPaint(PaintEventArgs e) {
base.OnPaint(e);
ControlPaint.dr(e.Graphics,
e.ClipRectangle,
SystemColors.Desktop,
ButtonBorderStyle.Solid);
}
Craig