Try invoking the ToolStrip and not the ToolStripProgressBar:
delegate void ToolStripPrograssDelegate(int value);
private void ToolStripPrograss(int value)
{
if (toolStrip1.InvokeRequired)
{
ToolStripPrograssDelegate del = new ToolStripPrograssDelegate(ToolStripPrograss);
toolStrip1.Invoke(del, new object[] { value });
}
else
{
toolStripProgressBar1.Value = value; // Your thingy with the progress bar..
}
}
I'm not sure it will work, but give it a shoot.
If this wont work try this:
delegate void ToolStripPrograssDelegate(int value);
private void ToolStripPrograss(int value)
{
if (this.InvokeRequired)
{
ToolStripPrograssDelegate del = new ToolStripPrograssDelegate(ToolStripPrograss);
this.Invoke(del, new object[] { value });
}
else
{
toolStripProgressBar1.Value = value; // Your thingy with the progress bar..
}
}
'this' should be the Form it's self.