Re-enabling a button after few seconds
<p>What I want to do is that, I have a clear button that deletes every entered value. However, if I clicked it without entering values, it shows error. Therefore, I decided that if the user didn't enter any values, the Clear button will be disabled. However, when I do so, the Clear button wont become enabled again, so I want to put a timer that re-enables the Clear button after few sec's lets say 3 sec's. Can anyone help me please? btw it should be in C#
what i did so far</p>

<pre><code>if (txtFirstActual.Text.Length &gt; 0)
{
    //so that if the user clicked on Clear button without entering a value, it will disable the button
    button1.Enabled = true;               
}
else
{
    button1.Enabled = false;
    // here, i want to put a timer here so that it re enables the button after few sec's
}
</code></pre>
