Change Label.Text in any step in the loop
<p>I want in this code in the any step label show the Number of that step.
In the my code just show last number in the label!</p>

<p>I also Label.Invalidate() the done, but do not work.</p>

<pre><code>    private void button1_Click(object sender, EventArgs e)
    {
        int i = 0;
        while (i&lt;100)
        {
            i++;
            label1.Text = string.Format("Step is :{0}", i);
            System.Threading.Thread.Sleep(1000);
        } 
   }
</code></pre>
