Thread td = new Thread((ThreadStart)delegate{
int i=0;
while (true)
{
this.progressBar1.Value=i++;
if (progressBar1.Value >= 1000000)
break;
}
});
td.Start();
int i=0;
while (true)
{
this.progressBar1.Value=i++;
if (progressBar1.Value >= 1000000)
break;
}
});
td.Start();