Transparent controls

  • Thread starter Thread starter Mikhail Fedosov
  • Start date Start date
M

Mikhail Fedosov

Hello All!

Assume that we have a control which draws something on its background. I
need to place some labels and checkboxes on this control. And how can I make
the background of these controls to be transparent? I just want from label
and checkboxes to display only text, but not its back color.
 
Hi Mikhail,

How about this.

Labe1.BackColor = Color.FromARGB(0, 0, 0, 0);

In this overload the first argument is the alpha channel and as a
result 0 is transparant.

Hope this helps.

Simon Rigby
 
Back
Top