I am trying to set the text of a label control based on a condition in a loop.
The condition is reached about 10 times during the loop.
The final text value is ->->->->->->->->->->->->->->
The label acts as a progress bar.
There is no error, but the label text does not get updated.
string strProgressChar = "->";
for (int i = 0; i <=8000 ; i++)
if (intProgress == intProgressIncrement) // increment is 300
lblProgress.Text = lblProgress.Text + strProgressChar; // Text is not updated
intProgress = 0;
} // End while ((line = sr.ReadLine()) != null)
Any help would be appreciated.