Home All Groups Group Topic Archive Search About

transparancy in vb.net

Author
15 Apr 2005 4:54 PM
John Devlon
Hi,

does anyone know how to set the BackColor of a label to transparant ?

A have a picture as background image and I would like some labels on top.
These labels must be transparant so that only the text is visible and the
backcolor of the labels disapears ...

Thanx

John

Author
15 Apr 2005 5:18 PM
Tom Shelton
In article <klS7e.65561$Ys5.4585***@phobos.telenet-ops.be>, John Devlon wrote:
> Hi,
>
> does anyone know how to set the BackColor of a label to transparant ?
>
> A have a picture as background image and I would like some labels on top.
> These labels must be transparant so that only the text is visible and the
> backcolor of the labels disapears ...
>
> Thanx
>
> John

In its backcolor property, switch to the web tab and select transparent.
Though, I found that this does not work if you use
Application.EnableVisualStyles ()

--
Tom Shelton [MVP]
Author
15 Apr 2005 5:34 PM
John Devlon
Dear Mr. Shelton,

Thanx a lot. It works great.

John




Show quoteHide quote
>
> In its backcolor property, switch to the web tab and select transparent.
> Though, I found that this does not work if you use
> Application.EnableVisualStyles ()
>
> --
> Tom Shelton [MVP]
Author
16 Apr 2005 12:57 AM
Dennis
This might work:

myLabel.SetStyle(ControlStyles.SupportsTransparentBackColor, True)

Show quoteHide quote
"John Devlon" wrote:

>
> Dear Mr. Shelton,
>
> Thanx a lot. It works great.
>
> John
>
>
>
>
> >
> > In its backcolor property, switch to the web tab and select transparent.
> > Though, I found that this does not work if you use
> > Application.EnableVisualStyles ()
> >
> > --
> > Tom Shelton [MVP]
>
>
>