About timer in CF

  • Thread starter Thread starter ORC
  • Start date Start date
O

ORC

Is it possible to use the System.Windows.Forms.Timer in any user written
class?

Thanks
Ole
 
Yes it is. Just create it and make sure the user written class is in a a
project that references System.Windows.Forms. If you are doing this in a dll
however I'd suggest using the Threading.Timer (note that it's callback comes
back on a different thread) as it is designed for that purpose.

Cheers
Daniel
 
Great - thanks!

Ole

Daniel Moth said:
Yes it is. Just create it and make sure the user written class is in a a
project that references System.Windows.Forms. If you are doing this in a dll
however I'd suggest using the Threading.Timer (note that it's callback comes
back on a different thread) as it is designed for that purpose.

Cheers
Daniel
 
Back
Top