System.Timers.Timer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guy Cohen

    System.Timers.Timer

    Hi all
    I need a sample with timers.
    I read the samples on the net with consol output but I want to change (for
    example) a text box content on my form and this sample is not good for
    that...
    TIA
    Guy


  • rowe_newsgroups

    #2
    Re: System.Timers.T imer

    On Sep 5, 8:12 am, "Guy Cohen" <noem...@please .comwrote:
    Hi all
    I need a sample with timers.
    I read the samples on the net with consol output but I want to change (for
    example) a text box content on my form and this sample is not good for
    that...
    TIA
    Guy
    For Windows forms you should (imo) use the System.Windows. Forms.Timer
    object. Add the object to your form, set the interval property (in
    milliseconds), and add an event handler to the timer's Tick event. In
    that method you do any actions you want to occur when the timer
    "ticks".

    Let me know if you need further help.

    Thanks,

    Seth Rowe

    Comment

    • Guy Cohen

      #3
      Re: System.Timers.T imer

      Hi
      I know that but I really want to use system.timers.t imer for practice
      purposes
      The final solution is a service not a form...
      TIA
      Guy
      "rowe_newsgroup s" <rowe_email@yah oo.comwrote in message
      news:1188996733 .621660.229170@ d55g2000hsg.goo glegroups.com.. .
      On Sep 5, 8:12 am, "Guy Cohen" <noem...@please .comwrote:
      >Hi all
      >I need a sample with timers.
      >I read the samples on the net with consol output but I want to change
      >(for
      >example) a text box content on my form and this sample is not good for
      >that...
      >TIA
      >Guy
      >
      For Windows forms you should (imo) use the System.Windows. Forms.Timer
      object. Add the object to your form, set the interval property (in
      milliseconds), and add an event handler to the timer's Tick event. In
      that method you do any actions you want to occur when the timer
      "ticks".
      >
      Let me know if you need further help.
      >
      Thanks,
      >
      Seth Rowe
      >

      Comment

      Working...