Transparent label problem
-
Hi Im having a problem making the background of a label transparent. I have a label on top of a picturebox and I make the labels parent the picturebox. I also set the labels backcolor to transparent. For some reason the label just disapears when I do this. Does anyone have any ideas? Thanx
-
Hi Im having a problem making the background of a label transparent. I have a label on top of a picturebox and I make the labels parent the picturebox. I also set the labels backcolor to transparent. For some reason the label just disapears when I do this. Does anyone have any ideas? Thanx
-
Hi Im having a problem making the background of a label transparent. I have a label on top of a picturebox and I make the labels parent the picturebox. I also set the labels backcolor to transparent. For some reason the label just disapears when I do this. Does anyone have any ideas? Thanx
Setting the background to Color.Transparent tells the label control to inherit the background properties of it's parent container. It does NOT make the background transparent. In order to do what you want, you'd have to create your own label control and render it yourself. Your not the first person to want to do this. There are a ton of examples of doing a true TransparentLabel ono the web. All it takes is a little Google to find them. ".net transparent label[^]"
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
Hi Im having a problem making the background of a label transparent. I have a label on top of a picturebox and I make the labels parent the picturebox. I also set the labels backcolor to transparent. For some reason the label just disapears when I do this. Does anyone have any ideas? Thanx