I have a timer in my form that has a relatively short interval and calls a sub that takes a long time to execute. What happens if I disable the timer in its tick event before calling my long process. For example:


tim_Tick
tim.enabled = false

LongProcess()

tim.enabled = true

Could disabling the timer kick itself out of the sub for the Tick event? Does this approach make sense overall? Thanks for the help.

Re: Timer Question by The

The
Fri Jun 18 01:46:01 CDT 2004

> I have a timer in my form that has a relatively short interval and calls a
sub that takes a long time to execute. What happens if I disable the timer
in its tick event before calling my long process. For example:
>
>
> tim_Tick
> tim.enabled = false
>
> LongProcess()
>
> tim.enabled = true
>
> Could disabling the timer kick itself out of the sub for the Tick event?

No.

> Does this approach make sense overall?

Up to a point.