sleep command preventing form2 from displaying
i have form1 which kicks off a form2
in form2 i have a loop which updates a listview
i want the loop to run continuously until i kill the program (i will eventually add multi-threading but have not yet)
the loop displays data in a listview, then sleeps then displays next page of data in listview and then restarts from first page
I added this command in a do loop (with no condition - i want it to run continuously)
Code:
System.Threading.Thread.Sleep(1000)
The problem is that when I add this code (all in form 2), form 2 doesnt display at all
Re: sleep command preventing form2 from displaying
update: i think it might be the continuous do loop that is preventing it from displaying... not the sleep command