C# Windows Form Application Transparent button

Its simple try this.

Click the button that you want to make transparent. Select FlatStyle from Properties and set it to popup Now change the BackColor property to Transparent.

This will make the button transparent.

However if you want to make it transparent over a PictureBox this method wont work..

It works only on normal backgrounds and background images. Hope it works....


buttonLink.FlatStyle = FlatStyle.Flat; 
buttonLink.BackColor = Color.Transparent;
buttonLink.FlatAppearance.MouseDownBackColor = Color.Transparent;
buttonLink.FlatAppearance.MouseOverBackColor = Color.Transparent;

Tags:

C#

Button