Transparent controls

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.
 
D

Diggers

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top