Wednesday, May 6, 2015

Updating Label in runtime

I have updated Label in WinForm using BeginInvoke when I want to update it at runtime.

label1.BeginInvoke(new Action(() =>
{
    label1.ForeColor = Color.White;
    label1.BackColor = Color.Blue;
    label1.Text = "Ready to load...";
}));
How could I update label at runtime in case of WPF?

No comments:

Post a Comment