timer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dipalichavan82
    New Member
    • Feb 2008
    • 41

    timer

    there r 3 types of timers if found:
    system.windows. forms.timer: taken from windows option on toolbox
    system.timers.t ime: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
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by dipalichavan82
    there r 3 types of timers if found:
    system.windows. forms.timer: taken from windows option on toolbox
    system.timers.t ime: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?

    Comment

    • int08h
      New Member
      • Apr 2007
      • 28

      #3
      As I memorized, three types of timer works similar to each other, but in renference to CLR VIA C#, System.Threadin g.Timer is recommended

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Originally posted by int08h
        As I memorized, three types of timer works similar to each other, but in renference to CLR VIA C#, System.Threadin g.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>

        Comment

        • phanimadhav
          New Member
          • Jun 2007
          • 78

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

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            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.t ime - This is roughly equivelant to the windows.forms.t imer 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).

            Comment

            Working...