473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Feb 12 '14 #1
2 1183
Luk3r
300 256MB
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
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

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

Similar topics

3
by: ray | last post by:
Hi, I just wrote a windows service application to call a function of another object periodically. I used System.Server.Timer and I found that it works fine within the first 2 hours but the...
3
by: mjheitland | last post by:
Hi, I like to know how many threads are used by a Threading.Timer object. When I create a Threading.Timer object calling a short running method every 5 seconds I expected to have one additional...
12
by: Crirus | last post by:
Hi! I havea control that display messages... I added a timer to it Every time a noew mesaage should be displayed I do the following: Private sub ShowMsg(message as string) Me.lblStatus.Text...
6
by: eBob.com | last post by:
My VB.Net app will require a timer of some sort. So I did some research and decided to use System.Windows.Forms.Timer, I guess mainly because while I have practically no experience with Events, I...
2
by: John David Thornton | last post by:
I've got a Windows Service class, and I put a System.Threading.Timer, and I've coded it as shown below. However, when I install the service and then start it in MMC, I get a peculiar message: ...
3
by: Tom | last post by:
When using system.timers.timer, which should one use to start/stop the timer? Start/Stop, or Enabled=True/False? If what I read is true, both really do the same thing, so I don't know if there is...
2
by: Stephen | last post by:
Hi all, Can one application start another? specifically can a webbased application start a console based application (exe) or windows based application (exe) If Yes, can you please suggest some...
17
by: Ratnesh Raval | last post by:
hi all, i m having some problem in timer control. sub timer.tick() timer.stop() do...something timer.enabled = true end sub
4
by: =?Utf-8?B?Tm9yZW1hYw==?= | last post by:
Here is what I am trying to get to: I have a console exe that grabs information from the network and writes to an XML file on the website that web pages then render information from. The console...
1
by: JWest46088 | last post by:
I'm getting this error when I try to preview my code: TypeError: Error #1009: Cannot access a property or method of a null object reference. at therun4life_fla::MainTimeline/frame1() I don't...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.