Re: Timer question.

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



Hi bob,

but later on, I need to port the code to Compact Framework.
I guess System.Timers.Timer is not supported in Compact Framework.

Cheers,
Naveen.


"Bob Powell [MVP]" wrote:

> You might find System.Timers.Timer is better suited to this task.
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Find great Windows Forms articles in Windows Forms Tips and Tricks
> http://www.bobpowell.net/tipstricks.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/faqmain.htm
>
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
>
>
>
> "Naveen Mukkelli" <NaveenMukkelli@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
> message news:05B1C15B-CB6C-43A7-8BA2-84EA6C2936A6@xxxxxxxxxxxxxxxx
> > Hi,
> >
> > Currently I'm using System.Threading.Timer to perform some tasks
> > periodically,
> > lets say every minute.
> >
> > How can we disable this timer(System.Threading.Timer) so that the time
> > spent
> > in the callback method is not counted.
> >
> > Do we have an equivalent of
> > System.Timers.Time.Enabled
> > property in System.Threading.Timer class?
> >
> > Kindly let me know.
> >
> > Cheers,
> > Naveen.
>
>
>
.



Relevant Pages

  • Re: Custom Zoom & Performance
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... the scaled pixel ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Printing graphics/text that span multiple pages
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... You need to figure out how many pages you need and then render your ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Hotspots in graphic
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... > What is the best way to draw that image on the screen? ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Hotspots in graphic
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... > What is the best way to draw that image on the screen? ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Drawing backgeound image slows down form performance
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... > I have a windows form application that draws the background with a color ...
    (microsoft.public.dotnet.framework.drawing)