Why is the picture box control\'s visibility property not working here. I have initially set them to false, so that when the screen loads they are not visible. But then I wish t
In addition to Thread.Sleep();
call Application.DoEvents()
to trigger event handling/ui updating. However ensure you're not calling Action()
again somehow. A simple Thread.Sleep()
won't allow the UI to update as you're still in the handler and the framework won't be able fire any new events on its own as it won't know if you're finished when waiting (due to the thread still being busy).
Overall your approach might be a bad idea (depending on other code etc.). Consider using timers or a background worker instead.