How i can refresh the progress bar after every copy?I try different things without success.....The progress bar will only after the for loop are finished update to 100%
for (; count < copyCountTotal; )
if ((copyCountX * (xSize + copyOffsetX)) > (x * (xSize + copyOffsetX)))
corelApp.ActiveSelection.Duplicate(x * (xSize + copyOffsetX), y);
x = 0;
if (copyCountY <= ((ySize+copyOffsetY)/y))
y -= ySize + copyOffsetY;
corelApp.ActiveDocument.InsertPages(1, false, 1);
Progress_Bar.Value = ((count / copyCountTotal)*100);
TB_Info.Text = ((count / copyCountTotal) * 100).ToString();
corelApp.EventsEnabled = true;
//corelApp.Optimization = true;
//corelApp.ActiveSelection.Move(-xSize * 2, 0);
Running in UI Thread ?
alternatively, you can use a Label with a colored background and change its width
can you explain me UI Thread?
The problem is my debug label "TB_Info.Text" also not refresh. It shows 100% only when is finish.
Theoretically, `corelApp.EventsEnabled = true;` should do the trick..
What type of object is that `Progress_Bar`?
If this is placed on a form, try also `YourForm.Repaint`. `YourForm` being the name of the form keeping the progress bar.