lbl1.BackColor = Color.Red; //change backcolors of labels
lbl2.BackColor = Color.Red;
Thread.Sleep(2000);
lbl1.Text = val1.ToString(); //assign values to labels
lbl2.Text = val2.ToString();
Thread.Sleep(2000);
lbl1.BackColor = Color.Green; //reassign original backcolors
lbl2.BackColor = Color.Green;
This is a part of a method called inside a recursive method. I want to break down these steps to show a slow simulation. But, this doesn't gives the expected output.
Is there a better way? Please suggest.