Label text not updated
<p>I have a Windows Form with a status bar which shows the current state of application.
I have a class named AppState with update the Label in the status bar and in dispose it changes the state back to "Ready".</p>

<p>In code when I do an operation like:</p>

<pre><code>using (AppState state = new AppState("Processing..."))
{
     //Do some work that take some seconds
}
</code></pre>

<p>But the label remains the same. I am not getting any exceptions. The label text is updated but on UI it keeps on showing previous value. Am I missing anything here?</p>

<p>santosc you are right, thats the only thing I am doing. Here is the AppState code</p>

<pre><code>public class AppState : IDisposable
{
    static string Default = "Ready";

    public AppState(string status)
    {
        Form.StatusLabel.Text = status;
    }

    public void Dispose()
    {
        Form.StatusLabel.Text = Default;
    }
}
</code></pre>
