protected override void OnPaintBackground(PaintEventArgs e) { Region = new Region(RoundedRectangle.Create(0, 0, Width, Height, 7)); e.Graphics.Clear(Color.Transparent); }