Hi, just a simple question
I have a picturebox image for the form and added a label ontop of the image, i have it set the background on the label to transparent but its not transparent :/
How do i fix this ?
Thanks
Printable View
Hi, just a simple question
I have a picturebox image for the form and added a label ontop of the image, i have it set the background on the label to transparent but its not transparent :/
How do i fix this ?
Thanks
Transparency for windows forms controls is pretty simple-minded. It normally just shows you the background color or background image of the form. If you want to have another control show through the label, you have to make it the parent of the label. For example, you could put this code in the form's Load sub:
Note that you have to change the location of the label so that it is relative to the parent instead of to the form. The above example places the label at the picture box's top left corner.Code:Label1.BackColor = Color.Transparent
Label1.Parent = PictureBox1
Label1.Location = Point.Empty
BB
EDIT: sorry posted in wrong topic (had wrong tab opened, and didn't notice) lol