void RunThread ()
{
#if NET_2_0
try {
UpdateText ();
throw new Exception ("unsafe assignment to Text should result in exception");
} catch (InvalidOperationException) {
}
#else
UpdateText ();
#endif
Invoke (new UpdateHandler (UpdateText));
Invoke (new UpdateHandler (CloseForm));
}