N
Nick Carter
I have a progressbar which gets updated with the following code:-
for(int value=0; value < 100; value++)
{
progressBar1.Value = progressBar1.Value + 1;
progressBar1.Refresh();
System.Threading.Thread.Sleep(100);
}
The progressbar is updated just fine. However, if I Alt+Tab to another
application and then come back to my original application then the user
interface goes completely unresponsive until the for loop has ended. How can
I get the user interface to continue to be updated after the focus has
returned to my application ?
Nick Carter
for(int value=0; value < 100; value++)
{
progressBar1.Value = progressBar1.Value + 1;
progressBar1.Refresh();
System.Threading.Thread.Sleep(100);
}
The progressbar is updated just fine. However, if I Alt+Tab to another
application and then come back to my original application then the user
interface goes completely unresponsive until the for loop has ended. How can
I get the user interface to continue to be updated after the focus has
returned to my application ?
Nick Carter