bobleny
08-01-2009, 01:11 PM
Hey, I'm back!
I have a form with a button whose text changes right before Thread.Sleep(3000). The issue that I am having is, the sleep begins before the form button has time to update its self.
button.text = "words";
...
button.text = "new words";
Thread.Sleep(3000);
button.text = "words";
It's actually part of a game. The button resets itself after the sleep is done, but sense the initial change doesn't occur until right before it reverts back to the way it was, it doesn't even flicker!
I hope it is just something stupid, but I get the feeling it is not...
Thanks for any and all help!
I have a form with a button whose text changes right before Thread.Sleep(3000). The issue that I am having is, the sleep begins before the form button has time to update its self.
button.text = "words";
...
button.text = "new words";
Thread.Sleep(3000);
button.text = "words";
It's actually part of a game. The button resets itself after the sleep is done, but sense the initial change doesn't occur until right before it reverts back to the way it was, it doesn't even flicker!
I hope it is just something stupid, but I get the feeling it is not...
Thanks for any and all help!