//创建一个路径对象
GraphicsPath MyPath = new GraphicsPath();
//将椭圆添加到路径对象中
MyPath.AddEllipse(20,30,this.Width-30,this.Height-40);
this.Regin=new Regin(MyPath);
//创建一个路径对象
GraphicsPath MyPath = new GraphicsPath();
//将椭圆添加到路径对象中
MyPath.AddEllipse(20,30,this.Width-30,this.Height-40);
this.Regin=new Regin(MyPath);