Click here to Skip to main content
15,887,453 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello friends,

I am facing problem when I use label on third party component of visual studio like zedgraph - the transparent proprty of label(backcolor transparent) is not working and my label shows with dull color background.

Anyone can help me to resolve this problem.
Please post answer immediately.

Thanx
Regars
nil...
Posted
Updated 15-Dec-10 9:54am
v3
Comments
Sandeep Mewara 14-Dec-10 0:12am    
Well, no need to post in bold. Further, keep patience, people help here when they are free. Being demanding would just reduce interests of others.

1 solution

It doesn't work because Transparent is anything but. A control is not transparent to a control that it sits over. All Transparent does is tell the control to take on the background properties of the container it sits in. So, your Label sits in the Forms Controls collection and will inherit the background properties of the Form, not any controls it's sitting over the top of.

You'll have to implement your own, custom drawn Label control to add this support or use a third party control you find on the web. There's a couple of good transparent label control article here on CP.

All you have to do is search for them[^].
 
Share this answer
 
Comments
MCY 15-Dec-10 17:43pm    
good one
Dalek Dave 15-Dec-10 19:00pm    
That's a very good answer

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