public class MyPictureBox:PictureBox
{
protected override void OnCreateControl()
{
Rectangle rec = new Rectangle(10, 10, 72, 72);
GraphicsPath gp = new GraphicsPath();
gp.AddEllipse(rec);
// gp.AddEllipse(this.ClientRectangle);
Region region = new Region(gp);
this.Region = region;
gp.Dispose();
region.Dispose();
base.OnCreateControl();
}
}这是我的代码,,,请各位大侠指教!!!