Exemplo n.º 1
0
 protected override void OnPaint(PaintEventArgs e)
 {
     //if (BorderStyle != BorderStyle.None)
     //{
     e.Graphics.DrawPath(new Pen(Color.Red), DrawHelper.CreateRoundPath(Width, Height, 3));
     //}
     //base.OnPaint(e);
 }
Exemplo n.º 2
0
 GraphicsPath GetPath(Rectangle rect)
 {
     return(DrawHelper.CreateRoundPath(rect.Width, rect.Height, 2));
 }
Exemplo n.º 3
0
 protected override void OnResize(EventArgs e)
 {
     base.OnResize(e);
     this.Region = new Region(DrawHelper.CreateRoundPath(Width, Height, 3));
 }