First of all, "
System.Convert.ToBoolean(a)
" is not just bad or wrong, this is gibberish. What did you try to express with that?!
To pop up anything all of a sudden, after a certain time is a bad thing.
If you really think you need to do this bad thing (who knows why? so, maybe…), you should know: this one of really rare cases when you can use the really, really bad, and hence almost never used in quality software, timer
System.Window.Forms.Timer
:
http://msdn.microsoft.com/en-us/library/system.windows.forms.timer.aspx[
^].
The timer is bad due to poorest possible accuracy, so if it's good for something at all, this is your problem, where good accuracy is not needed. But this one is highly simplified in use. Read the help page referenced above; and you will see how to use it.
Other three (or so) timer classes available in .NET FCL are much better, but they all require at least minimal programming literacy to use, such as UI thread invocation,
Dispatcher
and the like.
—SA