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;
}
I found the answer:
The label was of Metro Framework control, and I was needed to define lbl.UseCustomForeColor=True