Are you doing it in a different thread? Try Thread.Sleep(30) and then a refresh in a thread while the main() loads?