It is Visual Studio 2008, Target Framework: .NET Framework 3.5
I tried both VB.NET and C# and the problem occurs in both, it is not accepting transparent as a back color through the IDE Properties or set through code.
Main Topics
Browse All TopicsI have a form with a background image that I would like to put labels over top and have the label be transparent so you see the form background image under the label.
I have searched quite a bit and have not found a solution that works. When I set the backColor to transparent via the ide properties it errors: (Control does not support transparent background colors.)
if in the code editor I try:
label1.BackColor = Color.Transparent;
it accepts it, but when the code runs I get an error: Control does not support transparent background colors.
I have to say this about the most ridiculous thing I have ever run into. Any other language I have used can do this with ease.
I found some code from microsoft saying to do this, but this also has made no difference. On Form Load
this.SetStyle(ControlStyle
this.SetStyle(ControlStyle
this.SetStyle(ControlStyle
this.SetStyle(ControlStyle
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
turns out kind of funny, I did try changing the transparency key to red and then setting the label backcolor to red, interestingly then the label background is transparent but it actually looks through the form kind of making that label like a window. So you can't see the forms background image, ie. if I have the form over outlook, I can see outlook through the label. It makes for a cool effect but it is too powerful for what I need, I just want to be able to see the forms background through the label so the text looks like it is on the background.
Hi,
I found the problem and was able to resolve it, the project I am working on uses an odd font, and to make it display as I wanted I had changed the FlatStyle property on the label to System from Standard, apparently that causes the problem. Making the FlatStyle Popup, Flat, or Standard allows me to set the backcolor to Transparent.
FlatStyle says it "Determines the appearance of the control when a user moves the mouse over the control and clicks." so I don't see why it wouldn't allow the control to be transparent but it does.
Business Accounts
Answer for Membership
by: djjariesPosted on 2009-10-07 at 01:32:02ID: 25513150
Which version of .NET are you developing in?
.NET 2.0 has that issue. In .NET 3.5, the label supports transparency.