Controls in other controls

  • Thread starter Thread starter gv
  • Start date Start date
G

gv

Hi all,

This is probably a easy question but has me stuck.

simple I have a label control on a panel control but the label control is
using the text color from the panel control.
I want to se it's own color. so how do I set the label control to
not inherit the color properties of the panel control?

thanks
GV
 
You should then expose the background color of the label as a property of
the panel.

public Color LabelColor{set{this.myLabel.BackgroundColor=value}}
 
thanks for your help,

I figured out what the problem was.
I'm making the panel enabled = false which changes the color. so I just hide
that label until
I make the panel.enabled = true.

thanks
Gerry
 
Back
Top