Click here to Skip to main content
15,608,652 members
Please Sign up or sign in to vote.
2.67/5 (3 votes)
See more:
how do i make a custom shaped button?

windows 7 login screen shows the 'Go' button which is 'round' and not rectangular or square.

do i just select a 'flat' appearence for my button from the buttons properties and provide a backgrpond image that looks 'round'? or do i have to do something else?
ambarishtv 23-Jul-11 10:01am,wpf, winform.?tag it
Sergey Alexandrovich Kryukov 24-Jul-11 2:04am    
Tag it!
murathankocan 4-Feb-13 4:37am    
this might help:

I am assuming that you needed for winform application. So this MSDN article shows you how to do so. A Rounded button using Region property of the control[^]
Share this answer
Sergey Alexandrovich Kryukov 24-Jul-11 2:08am    
Correct, my 5; and the article referenced by Abhinav does not do right thing, unfortunately.
Wonde Tadesse 24-Jul-11 11:16am    
Thanks --SA.
mvinoth74 27-Feb-12 8:24am    
Thanks alot...........
murathankocan 4-Feb-13 4:35am    
here is a solution... might work...
Joezer BH 4-Feb-13 5:18am    
Have a look at Custom Button with Color and Shape[^].

For custom button, WPF maybe the way to go.
Share this answer
Sergey Alexandrovich Kryukov 24-Jul-11 2:07am    
Anhinav, I think this is bad article; it does not provide true non-rectangular buttons, because Region is not used. The difference is easy to detect by clicking on the corner of this in fact rectangular button -- it will work, but it should not.
Abhishek Pant 4-Feb-13 20:45pm    
I think this can be generated with an image with transparent background also. just click the image go what ever you want to.
Sergey Alexandrovich Kryukov 4-Feb-13 21:22pm    
I can be, but why? The problem is: it's not true non-rectangular shape. A click shows the problem...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900