tags:

views:

214

answers:

6

I need you to refer me to a good dll file that I can add to my VS in order to have a round button control, any suggestions?

+2  A: 

telerik RadButtons for WinForms maybe?

Svish
+2  A: 

add custom drawing in OnPaint event handler.

Bashir Magomedov
A: 

You'd probably have to create an image with your rounded corners specification, and use it on an image button to achieve what you want.

Tobby
+3  A: 

You can make your own pretty easily, the Region property makes it simple. Add a new class to your project and paste the code shown below. Compile. Drop the new control from the top of the toolbox onto a 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
+1  A: 

Use WPF if its still early in the project and you can still switch

Johann Strydom
It's never to late to switch to WPF!
Claus Jørgensen
A: 

I suggest following two DLL files: PresentationCore.dll and PresentationFramework.dll

It's more commonly known as Windows Presentation Foundation (WPF), and can easily be used to make round buttons.

Claus Jørgensen