qex Posted September 25, 2003 Posted September 25, 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 Quote
Hamburger1984 Posted September 25, 2003 Posted September 25, 2003 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! Andreasroundbutton.zip Quote
jeaning Posted August 2, 2010 Posted August 2, 2010 This zip filee is corrupted. Would you pleasee to updated it? Quote
SteelHeart Posted May 11, 2011 Posted May 11, 2011 How about changing the color/thickness of the border Quote
shail_nautiyal Posted July 20, 2011 Posted July 20, 2011 thanxx buddy ...!! you saved my day !!! Quote
raghavangs Posted September 30, 2011 Posted September 30, 2011 Hey Buddy, You saved my time a lot and its a great work. Thanks buddy. :o Quote
PrOpHeT Posted October 14, 2011 Posted October 14, 2011 Not to steal thunder here, however there is a nice sample with all the bells whistles, and spongebob too... http://www.codeproject.com/KB/buttons/CButton.aspx About anything you could ever want to do with a button. (Edit:Just realized this was a very deep gravedig...) Quote Life is a comedy to those who think; a tragedy to those who feel.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.