C# Timer in compact framework

  • Thread starter Daniel Passwater via DotNetMonster.com
  • Start date
D

Daniel Passwater via DotNetMonster.com

I'm working on serial communication; and I'm have a situation where I need to wait, but I don't want to halt the thread. I am waiting for a specific event. However, if the event doesn't take place I want to continue. I have a loop checking for the event and I want to | it with 10 seconds elapsed. I am thinking about using System.DateTime.Now, but this seems a bit bulky. Is there some sort of timer in the compact framework libs? Is there a better way to do this? I'm new to all of this, so I'm wide open.

Thanks for the help in advance.
 
M

Morten Wennevik

Hi Daniel,

Not having tested it I believe both System.Threading.Timer and
System.Windows.Forms.Timer is supported by Compact Framework, or at least
their constructor appears to be.
 

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

Top