Wednesday, December 31, 2014

Text is not being displayed in sync on a label when looping through a list -- how to fix?


there appears to be a lag in the label.Text property



Call the Update() method for the Label control immediately after changing the text to force

it to redraw immediately:



lblStateID.Text = "State is " + stateID;
lblStateID.Update();

- Wayne


No comments:

Post a Comment