Hi guys I'm currently trying to get to grips with winforms GUI programming in visual studio C++.
I'm having an issue that's been addressed a little in c#, but how do you update the progress of the progress bar while your internal program is iterating through loop. I'm especially interested in mathematical modelling but have no idea how to implement a decent progress bar. Any help on the topic would be great. Here's what I've got so far:
private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e)
{
this->timer1->Start(); //Inside a start button
}
private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e)
{
//this->progressBar1->PerformStep();
this->progressBar1->Minimum=0;
this->progressBar1->Maximum=100;
for(int i = 0; i <= 100; i++)
{
this->progressBar1->Value = i;
this->progressBar1->PerformStep();
}
}