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


I have created windows form application in vb.net. I want to create a transparent button. Is there any vb.net 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 vb.net 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
Posted
Updated 9-Jul-18 5:21am

1 solution

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

Regards,
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