Sunday, 15 May 2011

visual studio - c# / vb - Label is not transparent

Problem
Setting the Backcolor of the Label component to web -> Transparent, the Label is not transparent at all!

Solution
This is because MS is confused about what is really transparent! Forget the transparent effect between the components!
This Transparent color means that if you set Backgroundimage at the container where hosts the Label component, the Label will be transparent at the image that is loaded in the container.
In practice...
- create a Form
- set a Backgroundimage at the created form, load a jpg file...
- drop a Label compoent
- set the at Label component the property Backcolor to web -> Transparent

Now  you have a transparent Label in the way of Microsoft :(

1 comment: