-4

I try to update the forecolor and text of a label in run time by invoke, The text changes but the forecolor does'nt. What could it be?

Code:

this.BeginInvoke(() =>
{
    lbl.Text="Home";
    lbl.ForeColor=Color.White;
}
Chani Poz
  • 1,413
  • 2
  • 21
  • 46

1 Answers1

0

I found the answer:
The label was of Metro Framework control, and I was needed to define lbl.UseCustomForeColor=True

Chani Poz
  • 1,413
  • 2
  • 21
  • 46