In this forloop I am reading 3 files that takes about 20 seconds.
Now I have done a formula: (out / count) * 100 that will show progress.
So for the first file wich will be (1 / 3) * 100 wich will have a value of 33.33
the progressbar should be on 33.33 % but this is not happening ?
It waits until all 3 files is read and then display 100 % directly.
Any idéas why this is happening. 100 is the MaxValue for the progressBar1.
(If I just put a number like for example 30 instead the progressBar1 will fill up to 30 %.)
int count = 3;
for (int out = 1; out < (count + 1); out++)
this->progressBar1->Value = (out / count) * 100;