Hi,
I am using the following code to change the background color programatically.
lblflagging.BackColor = Color.OrangeRed
However the default background color (GreenYellow) does not change.
Can you please tell me what am I doing wrong? Thanks
ok I changed the font to default (as opposed to GreenYellow) and now it worked.
I set the UseAppStyle Property to false but it did not work.
The default background color of a label or UltraLabel uses the system control color. Unless your system is using GreenYellow, I assume you that by "default" here you mean that GreenYellow is the AppStylist color?
If that's the case, then the AppStylist colors will take precedence over any appearances you set in code. That is by design. If you want a particular individual label to be a different color, you have several options.