How do I change a property of a control several times during a loop in C#
<p>I'm trying to do something like this:</p>

<pre><code>int i;
while(true)
{
    label1.Text = i.ToString();
    i++;
    Thread.Sleep(500);
}
</code></pre>

<p>(in reality I'm trying to do something more complex and that makes more sense but this is a simple example of my problem)
I'm expecting that the text of the lable changes each 1/2 seconds..but it is getting stuck.</p>

<p>Thanks you</p>
