I have a Form Say (Form3), which has a Timer on it
which executes a large amount of code on each 2 seconds.
There is a command button, (Say Command1) which , on click,
executes some code and closes the form.
My program allways crashes on hitting the command button.,
ie The Timer event does not complete its functions.
1. I have tried putting a Tactive=true Tactive=False
in the timer code.. ie Tactive is Public.
On Click of the command button i look for Tactive=False (itnever becomes false)
2. Have put DoEvents Everywhere. NO effect.
??? MY question.
How do i click on Command1 , and have the timer finish it processes, then turn Timer off, and complete the procces.