I have a label that I have appearing and disappearing in two second intervals with a timer. Lets call this Timer2. How do I delay that timer from starting/ or shall we say start that timer with another timer. Lets call that one Timer1. I tried Timer2.Start() as well as Timer2.Enabled = True. However Timer2 just begins as soon as the Form opens. And I do not have it coded in the load form area. Obviously i am a super newb here, so help is needed and appreciated. I am using VB 8
How do I start a timer with another timer
Collapse
X
-
Your timers themselves have properties that you can set via the properties window. If you select a timer, right click it, and click "Properties " it should display the properties window for that timer. Inside you will find Enabled and Interval. Enabled = True (this means it will start automatically). Enabled = False (this means it will not start automatically). Interval = 100 (100 milliseconds - 1000 = 1 second).
That being said, I'm fairly certain that from VB6 to VB.NET the syntax has not changed.
To turn a timer on: Timer1.Enabled = True
To turn a timer off: Timer1.Enabled = False
Your logic was correct, but you probably need to set Enabled to False in your timer properties (or within Form_Load)
Comment