Create a class that extends Button and just handle the paint event.
public class MyButton : System.Windows.Forms.Button
{
public MyButton()
{
InitializeComponents();
this.Paint += new PaintEventHandler(MyButton_Paint);
}
private void MyButton_Paint(object sender, PaintEventArgs e)
{
//Do your GDI+ Drawing here using e.Graphics.
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.