I am stuck in a problem where I should show a progress in % in a label. I have manage this code and think this should work but the label doesn´t update the % value it only shows "Progress... 0 %".
Is there anything I perheps should add to update the value in the label in realtime.
I have instead of:
Application:: DoEvents()
Also tried this without success.
this->Update();
this->ResumeLayout(true);
//Show progress in %
double ShowProgress = 0;
for( int i = 0; i < 2231; ++i )
{
Thread::Sleep(10);
ShowProgress = (i / 2231) * 100;
label1->Text = "Progress... " + Convert::ToString(ShowProgress) + " %" ;
Application::DoEvents(); //Update Form
}