473,320 Members | 1,691 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,320 software developers and data experts.

timer

there r 3 types of timers if found:
system.windows.forms.timer: taken from windows option on toolbox
system.timers.time:taken from componet option on toolbox
system.threadng.timer
please help me which timer is used when or in what situation.

i want my application to b executed after each 5minute.
how n which timer should i use.
please help
its urgent
thnx in advance
Feb 20 '08 #1
5 888
r035198x
13,262 8TB
there r 3 types of timers if found:
system.windows.forms.timer: taken from windows option on toolbox
system.timers.time:taken from componet option on toolbox
system.threadng.timer
please help me which timer is used when or in what situation.

i want my application to b executed after each 5minute.
how n which timer should i use.
please help
its urgent
thnx in advance
Did you try reading the specs for each of them to find out?
Feb 20 '08 #2
int08h
28
As I memorized, three types of timer works similar to each other, but in renference to CLR VIA C#, System.Threading.Timer is recommended
Feb 20 '08 #3
kenobewan
4,871 Expert 4TB
As I memorized, three types of timer works similar to each other, but in renference to CLR VIA C#, System.Threading.Timer is recommended
"As I memorized", what did you learn about how they work? The reference is the key to the solution as OP makes no mention of platform. But is that the point - they may want to memorize your solution... <sigh>
Feb 20 '08 #4
system.windows.forms.timer: taken from windows option on toolbox
i am using this timer its working good i already use this control in my project.My Client requirement as same as your requirement.So use this Control its fulfill ur requirement
Feb 20 '08 #5
Plater
7,872 Expert 4TB
I have them here in order of complexity:
system.windows.forms.timer - This timer uses windows messaging to trigger its events and runs on the GUI's thread. If your GUI thread locks up/is busy, so is your timer. Very simple to setup and use.
system.timers.time - This is roughly equivelant to the windows.forms.timer except geared more towards console applications. It also appears to run on the same thread it was created on.
system.threadng.timer - Creates a new thread for exectution of it's events. Most complex to use of the three, but the most powerful.

All of which run in your application. You can use any of them to trigger a function (and that function could also spawn another program if you like).
Feb 20 '08 #6

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

Similar topics

13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
6
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
9
by: HL | last post by:
I am using VS 2005 Beta - C# Problem: The Timer fires a few milliseconds before the actual Due-Time Let's say a timer is created in the following manner: System.Threading.Timer m_timer = null;...
7
by: Grahmmer | last post by:
I have a few timers that are added to a form at runtime. I can handle the event fine, but I cannot identify which timer fired. Is there a way to do this? Timer Creation: -------------...
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: ...
12
by: Gina_Marano | last post by:
I have created an array of timers (1-n). At first I just created windows form timers but I read that system timers are better for background work. The timers will just be monitoring different...
8
by: KnighT | last post by:
I have a .net service that runs a System.Threading.Timer. The delegate points to the function that the service should execute when the timer elapses. Problem: The timer is not ticking. I have...
8
by: =?Utf-8?B?RGF2ZSBCb29rZXI=?= | last post by:
I have a Timer that I set to go off once a day, but it frequently fails! In order to debug I would like to be able to check, at any moment, whether the Timer is enabled and when it will next...
11
by: Hotrod2000 | last post by:
I'm quite new to programming but I'm having problems getting a timer to work in visual studio.net I've created a timer on a form, enabled it and then typed the following code (from the mdsn...
16
by: Peter Oliphant | last post by:
Note that although this involves SAPI, it is more a question about Timers and event handlers. I wrote a Speech Recognize handler (SAPI), and put some code in it to enable a Timer. It would not...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.