Re: System.Timers.Timer

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi
I know that but I really want to use system.timers.timer for practice
purposes
The final solution is a service not a form...
TIA
Guy
"rowe_newsgroups" <rowe_email@xxxxxxxxx> wrote in message
news:1188996733.621660.229170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Sep 5, 8:12 am, "Guy Cohen" <noem...@xxxxxxxxxx> wrote:
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



.



Relevant Pages

  • Re: Creating dynamic TTimers with Nil owner
    ... >multiple dynamic TTimers at runtime with a *Nil* owner? ... >timers and how to make sure each instance of the timers is freed when the ... iTimer: Integer; ... // Now set the timer properties, including the event handler so we ...
    (alt.comp.lang.borland-delphi)
  • Re: .NET Event Handling (timers, Mouse movement)
    ... > mentioned am learning .NET. ... > out how to make an event handler for timers or mouse actions. ... properties window. ...
    (microsoft.public.vc.language)
  • Re: System.Timers.Timer
    ... I need a sample with timers. ... I read the samples on the net with consol output but I want to change (for ... and add an event handler to the timer's Tick event. ...
    (microsoft.public.dotnet.languages.vb)
  • Removing EventHandle[s] from a Timer
    ... Once I add an event handler to a Timer, ... For my purposes ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Activating timer from other thread
    ... One of the main purposes from using threads is that they are not working ... If you now want a synchronized assynchroon sollution, ... these timers from other thread. ... Diego F. ...
    (microsoft.public.dotnet.languages.vb)