I can't tell from the small snippet you posted or from your
description exactly what kind of control is being used for
the display. Therefore I can only offer a general observation.
It is common for displays to be "tardy" in showing changes,
especially in tight loops or during pauses (such as Sleep).
When you make a change to the contents of a visual control,
actual updating occurs according to the activities of the
control and Windows itself. Therefore it is customary to
force an immediate visible change in the control by explicitly
calling the Update() or Refresh() method/function of the
control after every change to its contents.
- Wayne