class ControlInher : Control
{
protected override void OnPaint(PaintEventArgs e)
{
Graphics g = e.Graphics;
Bitmap buffer = new Bitmap(this.Size.Width,this.Size.Height);
Graphics gBuffer = Graphics.FromImage(buffer);
gBuffer.FillEllipse(Brushes.Blue, 10, 10, 100, 100);
g.DrawImage(buffer, 0, 0);
gBuffer.Dispose();
}
public void CI()
{
Rectangle rc = this.ClientRectangle;
GraphicsPath gp = new GraphicsPath();
gp.AddEllipse(rc);
this.Region = new Region(gp);
}
public ControlInher()
{
Rectangle rc = this.ClientRectangle;
GraphicsPath gp =