private void button1_Paint(object sender,PaintEventArgs e)
{
System.Drawing.Drawing2D.GraphicsPath myGraphicsPath = new
System.Drawing.Drawing2D.GraphicsPath();
myGraphicsPath.AddEllipse(new Rectangle(0,0,125,175));
myGraphicsPath.AddEllipse(new Rectangle(75,95,20,20));
myGraphicsPath.AddEllipse(new Rectangle(120,0,125,175));
myGraphicsPath.AddEllipse(new Rectangle(145,95,20,20));
//改变按钮的背景颜色使之能被容易辨认
button1.BackColor = Color.Blue;
button1.Size = new System.Drawing.Size(256,256);
button1.Region = new Region(myGraphicsPath);
}
有的控件有Paint事件,可以重画