class Round : Button { protected override void OnCreateControl() { using (var path = new GraphicsPath()) { path.AddEllipse(new Rectangle(2, 2, this.Width - 5, this.Height - 5)); this.Region = new Region(path); } base.OnCreateControl(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)