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

example:
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?
Posted
Comments
ambarishtv 23-Jul-11 10:01am    
asp.net,wpf, winform.?tag it
Sergey Alexandrovich Kryukov 24-Jul-11 2:04am    
Tag it!
--SA
murathankocan 4-Feb-13 4:37am    
this might help:
http://www.youtube.com/watch?v=K_JzL4kzCoE

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
 
v2
Comments
Sergey Alexandrovich Kryukov 24-Jul-11 2:08am    
Correct, my 5; and the article referenced by Abhinav does not do right thing, unfortunately.
--SA
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...
http://www.youtube.com/watch?v=K_JzL4kzCoE
Joezer BH 4-Feb-13 5:18am    
5+
Have a look at Custom Button with Color and Shape[^].

For custom button, WPF maybe the way to go.
 
Share this answer
 
v2
Comments
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.
--SA
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...
—SA

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