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); }
GraphicsPath GetPath(Rectangle rect) { return(DrawHelper.CreateRoundPath(rect.Width, rect.Height, 2)); }
protected override void OnResize(EventArgs e) { base.OnResize(e); this.Region = new Region(DrawHelper.CreateRoundPath(Width, Height, 3)); }