Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
How to make label with transparant background containing bitmap image using c#
Posted
Comments
Sergey Alexandrovich Kryukov 19-May-11 14:13pm    
Tag is! ASP.NET or Form, or something else?
--SA

try this :)
this.label1.BackColor = System.Drawing.Color.Transparent;
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-May-11 14:12pm    
Do you know that this is not transparency at all? It simply uses parent's background color.
--SA
create a css class and call it in your label

i.e
CSS
.transparent
{
  background-color: Transparent;
}


In your label:
XML
<asp:label id="label1" cssclass="transparent" xmlns:asp="#unknown"> </asp:label>
 
Share this answer
 
v2
Comments
Sandeep Mewara 19-May-11 5:54am    
Always use PRE tags to format code part. It makes the question/answer readable.
Sergey Alexandrovich Kryukov 19-May-11 14:13pm    
How do you know this is Web application or not?!
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900