J
Jay Stacy
I have a timer on my form that works fine when I'm just
sitting there looking at the form. As soon as I click a
button that runs a routine that loops, the timer doesn't
fire. What I want to do is exit from the loop after a
certain time period if the loop exit condition is never
met. Basically something like this:
timer.start;
while((!timeout)&&(x<y))
{ do something to x and y}
//The timer routine would look something like this.
private timer_tick()
{ timeout = true;
timer.stop;
}
sitting there looking at the form. As soon as I click a
button that runs a routine that loops, the timer doesn't
fire. What I want to do is exit from the loop after a
certain time period if the loop exit condition is never
met. Basically something like this:
timer.start;
while((!timeout)&&(x<y))
{ do something to x and y}
//The timer routine would look something like this.
private timer_tick()
{ timeout = true;
timer.stop;
}