Re: System.Timers.Timer

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



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: System.Timers.Timer
    ... TIA ... I need a sample with timers. ... and add an event handler to the timer's Tick event. ...
    (microsoft.public.dotnet.languages.vb)
  • 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: Timer event just...doesnt happen
    ... their intervals are changed dynamically so the control ... interval and enabled property as well as a tick event. ... timers, or find another solution. ...
    (microsoft.public.vb.general.discussion)
  • Re: A blinking text
    ... Until now I haven't noticed that Tick Event. ... I was looking only for timers that call methods. ... an Invoke function but this approach gives me headaches. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)