You can make your own quite easily, the Region property makes it simple. Add a new class to your project and paste the code shown below. Compilation. Drop the new control on top of the toolbar onto the form.
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; class RoundButton : Button { protected override void OnResize(EventArgs e) { using (var path = new GraphicsPath()) { path.AddEllipse(new Rectangle(2, 2, this.Width - 5, this.Height - 5)); this.Region = new Region(path); } base.OnResize(e); } }
Hans passant
source share