I'm not sure why you're setting progressBar1.Value = progressBar1.Maximum there - it may be something I dont know about the Marquee style .. that being said, I would have expected something like
progressBar1.BeginInvoke(
new Action( () =>
{
progressBar1.Value = i;
}
));
inside your 'for loop' - I dont see where else you're updating the value for the progress bar
[edit] .. why not take this
for (int i = 1; i <= 100; i++)
{
this.label1.Text += string.Format("{0}. This is a test.", i);
Thread.Sleep(10000);
}
and make it this
for (int i = 1; i <= 100; i++)
{
this.label1.Text += string.Format("{0}. This is a test.", i);
progressBar1.Value = i;
Thread.Sleep(10000);
}
unless somehow Ive missed what your trying to do/what your problem is
[/edit]