G
Guest
Hi
I'm working on a project with a non-rectangular form. I found that if in the form constructor I define a region, say
GraphicsPath p = new GraphicsPath()
p.AddEllipse(20, 20, 200, 200)
this.Region = new Region(p)
I get a shaped form with no non-client areas which is exactly what I want.
My problem is I don't understand WHY this works. Shouldn't the OnPaint event override my code
I'd be grateful for any explanation of what's going on here
Regard
Tony Reynolds
I'm working on a project with a non-rectangular form. I found that if in the form constructor I define a region, say
GraphicsPath p = new GraphicsPath()
p.AddEllipse(20, 20, 200, 200)
this.Region = new Region(p)
I get a shaped form with no non-client areas which is exactly what I want.
My problem is I don't understand WHY this works. Shouldn't the OnPaint event override my code
I'd be grateful for any explanation of what's going on here
Regard
Tony Reynolds