I want the progress bar to have certain values after specific time intervals. but the Sleep function Stops the ui from appearing.
My Code
private: System::Void ProgressBarSave_Load(System::Object^ sender, System::EventArgs^ e)
{
for (int i = 0; i < 4; i++)
{
Thread::Sleep(3000);
progressBar1 -> Value +=25; if ( i == 3)
{
Close(); }
}
}