By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,983 Members | 2,035 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,983 IT Pros & Developers. It's quick & easy.

How do I start a timer with another timer

P: 2
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
Feb 12 '14 #1
Share this Question
Share on Google+
2 Replies


100+
P: 299
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)
Feb 13 '14 #2

P: 2
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.
Feb 17 '14 #3

Post your reply

Sign in to post your reply or Sign up for a free account.