Transparent Background Lable control

P

Peter King

Hello All,
I want to make the background colour lable control the same as the backcolor
or backgroud image.
I think there are two way :
1. Change the back colour the same as the background colour of the Form
2. Make the background of the Lable control transparent
What can I do to realize it?
Many Thanks

Peter
 
F

Fabien

Hi,

you can do this :

monLabel.BackColor = this.Parent.BackColor;
or
monLabel.BackColor = System.Drawing.Color.Transparent
or
monLabel.BackColor = System.Drawing.Color. (the color of your Form)


BR


Fabien Decret


ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/
 
P

Peter King

Hello Fabien,
I try your code,but it doesn't work.
Is it surpported by .NET CF?
Thanks
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top