Click here to Skip to main content
15,945,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have created windows form application in I want to create a transparent button. Is there any code available to make button transparent?

I have make that button transparent means whatever in background must be transparent for button. It should work like opacity. Because in background there can be multiple controls.

Kindly suggest some code.

Thanks & Regards,

Saurav Sinha

What I have tried:

Button1.FlatStyle = FlatStyle.Flat
Button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
Button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
Button1.BackColor = System.Drawing.Color.Transparent
Updated 9-Jul-18 5:21am

1 solution

Share this answer
yash1507 10-Jul-18 3:38am    
Not it's not working as needed.

Saurav Sinha

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