p = new Pen(col, thick); p.DashStyle = DashStyle.Solid; b = new SolidBrush(col);
protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); e.Graphics.SmoothingMode = SmoothingMode.HighQuality; e.Graphics.FillPath(b, this.path); e.Graphics.DrawPath(p, this.path); this.Region = new Region(this.path); }