How do I start a timer with another timer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MansonAK
    New Member
    • Feb 2014
    • 2

    How do I start a timer with another timer

    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
  • Luk3r
    Contributor
    • Jan 2014
    • 300

    #2
    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

    • MansonAK
      New Member
      • Feb 2014
      • 2

      #3
      Thanks Luk3r,
      That seems to do the trick. I have many many questions. Too many to post so if you'd be willing I would like to pick your brain if at all possible.
      Last edited by Rabbit; Feb 18 '14, 07:16 AM. Reason: Email removed per forum policy.

      Comment

      Working...