Transparent windows, create transparent Form

2

How can I make a transparent but not so controls (TextBox, Label, Button, etc) that has been added to the form , with C # .

    
asked by Jiskar 07.09.2016 в 20:41
source

1 answer

3

You can do it by defining the BackColor of a color and that same color apply it as TransparencyKey :

 this.TransparencyKey = Color.Crimson;
 this.BackColor = Color.Crimson;

With this you would achieve what you want, the transparent form but not the controls:

The other option is to use the opacity property, Opacity but this applies to the entire form including the controls it contains:

 frmTransparentForm.Opacity = 0.5;

where 0.0 is full transparency and 1.0 full opacity.

This will make your Form transparent.

Here an article: How to create transparent forms.

    
answered by 07.09.2016 / 22:34
source