protected override void OnPaint(PaintEventArgs pe)
{
System.Drawing.Drawing2D.GraphicsPath shape = new System.Drawing.Drawing2D.GraphicsPath();
shape.AddEllipse(0, 0, this.Width, this.Height);
this.Region = new System.Drawing.Region(shape);
//pe.Graphics.FillPath(new SolidBrush(Color.Black), shape);
pe.Graphics.FillRectangle(new SolidBrush(Color.Black), 0, 0, this.Width, this.Height);
}

浙公网安备 33010602011771号