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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top