I have 2 buttons on my form. The First button contains a loop and second button a MessageBox.
If I press the first button, this loop will take sometime.
Now is my question this. Let´s say that the loop will take about > 5 seconds and I press button2 after 1 second, the MessageBox wont show immediately because the loop is working. The MessageBox will show when the loop is ready.
My question here is if it is possible when I press button2 to "Force" the messageBox to
appear immediately with any code or any other approach to it ?
The First Button have this code:
int count = 0;
for(int i = 0; i < 3000000000; i++)
{
count = (count + 1);
The second Button has this code:
MessageBox::Show("Loop is working !");