Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have designed windows forms button but some problem occur i need without border and
with particular diamond shape image on/off button.
style is pressing type.
See My design

I need similar design Look Like
Posted
Updated 29-Jul-15 0:14am
v2

1 solution

Try:
C#
GraphicsPath path = new GraphicsPath();
path.AddLine(50, 0, 100, 50);
path.AddLine(100, 50, 50, 100);
path.AddLine(50, 100, 0, 50);
path.AddLine(0, 50, 50, 0);
Region r = new Region(path);
myButton.Region = r;
 
Share this answer
 

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