Hi there,
I do not seem to be able to make my label controls (or any for that matter)
transparent.... they always show the colour of whatever they are sitting on.
Can VS.Net not handle this a function this basic? Or am I missing something?
Any helpful replies appreciated...
Matthew - 18 Oct 2004 05:34 GMT
> I do not seem to be able to make my label controls (or any for that
> matter)
[quoted text clipped - 3 lines]
> Can VS.Net not handle this a function this basic? Or am I missing
> something?
Yes, it can be done. If you want to make the whole thing partially
transparent, change the form's opacity property.
I think you are really wanting to change the background to transparent,
though.
An excellent example of this was just posted by a gentlemen by the name of
Cor in a thread titled Skinning.
http://groups.google.com/groups?q=skinning+cor&hl=en&lr=&c2coff=1&selm=uw6Se0GtE
HA.2804%40TK2MSFTNGP14.phx.gbl&rnum=1
The short version is:
Form1.TransparencyKey = Form1.BackColor
Matthew
Bob Powell [MVP] - 18 Oct 2004 06:54 GMT
Windows Forms Tips and Tricks has an article on transparent Windows Forms
controls.

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
> Hi there,
>
[quoted text clipped - 4 lines]
>
> Any helpful replies appreciated...