HI i have the following code


VB Code:
  1. timer1.enabled = False
  2. 'a bit of code
  3. timer1.enabled = True

this executes the code between the timer1, every time its interval is up, so to say.

I want to disable this timer when a button is pressed and enable it again, when another is pressed....

to disable it had

VB Code:
  1. Private Sub command1.click ()
  2.  
  3. timer1.enabled = False
  4.  
  5. End Sub
  6.  
  7. ' and to enable it again i had
  8.  
  9. Private Sub command1.click ()
  10.  
  11. timer1.enabled = True
  12.  
  13. End Sub

This didn't work as i have already enabled it in another part of the code

Any Thoughts
Chris Lynch