For loop problems?
Hello!
Why lbProgressMsg.Text="Testing in progress..."; don't take effect? When i<=j, it display lbProgressMsg.Text="Testing is ended"; only?
private void btnTest_Click(object sender, System.EventArgs e)
{
int j=100;
for (int i=0; i<=j; i++)
{
progressBar1.Value=i;
System.Threading.Thread.Sleep(25);
lbProgressMsg.Text="Testing in progress...";
}
lbProgressMsg.Text="Testing is ended";
}
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

david 0Rank #8,108 · 228 reputationPosted Oct 24, 2003, 3:22 AM EDT
softairhk147 reputationPosted Oct 24, 2003, 7:26 AM EDT
ssswamiiRank #4,500 · 340 reputationPosted Oct 24, 2003, 7:58 AM EDT
ssswamiiRank #4,500 · 340 reputationPosted Oct 24, 2003, 8:01 AM EDT