rounded corner button

qex

Regular
Joined
Apr 2, 2003
I have been looking for a way to create rounded corner buttons for a windows forms app in vb.net and have been mostly unsuccessful to this point. I can draw a rounded corner rectangle within the client area of the button, but the client area is still a rectangle and I can't figure out either how to make the rectangle client area transparent or make the whole button a different shape.

I have been working in the onpaint side of the button control. Will this not do all that I need? Do I need to be looking at something other than the button control itself. I'm not really sure where to go from here.

Thanks
 

Hamburger1984

Centurion
Joined
Jun 12, 2003
Location
Hamburg,Germany
see attachment! ....it's C# - I just wrote it and really don't want to write it again in VB.NET... so I hope it'll help you! Have Fun!

Andreas
 

Attachments

  • roundbutton.zip
    39.5 KB · Views: 377
Top Bottom