hii...
plz help me out ,how to create rounded or oval buttons using c# in VS 2005.
plz help me out ,how to create rounded or oval buttons using c# in VS 2005.
public class ShapedButton : Button
{
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
GraphicsPath gp = new GraphicsPath();
gp.AddEllipse(new Rectangle(Point.Empty, this.Size));
this.Region = new Region(gp);
}
}
Comment