G
Guest
(VB.NET 2003)
I have a simulation that runs in a loop. I would like to give the user acces
to interrupt and cancel the simulation.
At the start of each loop, I check a global variable which can be set to
false by clicking a 'cancel' button but the operating system gives so much
resources to my simulation, that it does not allow me (the user) to click the
button untill after the simultion.
How can I introduce a short pause or something that will allow the button to
be clicked if needed?
I have a similar problem with a splash screen form that I show during
startup by using splashScreenForm.show(), but the processor is so busy with
the code that follows, that the form does not display untill after all is
done (I actually want to show the splashscreen while the PC is busy loading
data etc.)
Any help?
I have a simulation that runs in a loop. I would like to give the user acces
to interrupt and cancel the simulation.
At the start of each loop, I check a global variable which can be set to
false by clicking a 'cancel' button but the operating system gives so much
resources to my simulation, that it does not allow me (the user) to click the
button untill after the simultion.
How can I introduce a short pause or something that will allow the button to
be clicked if needed?
I have a similar problem with a splash screen form that I show during
startup by using splashScreenForm.show(), but the processor is so busy with
the code that follows, that the form does not display untill after all is
done (I actually want to show the splashscreen while the PC is busy loading
data etc.)
Any help?