Transparent Background Lable control

  • Thread starter Thread starter Peter King
  • Start date Start date
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
 
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/
 
Hello Fabien,
I try your code,but it doesn't work.
Is it surpported by .NET CF?
Thanks
Peter
 
Back
Top