473,486 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C# Timer in compact framework

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.

--
Message posted via http://www.dotnetmonster.com
Nov 16 '05 #1
1 5789
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.

On Sat, 11 Dec 2004 19:25:57 GMT, Daniel Passwater via DotNetMonster.com
<fo***@DotNetMonster.com> wrote:
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.


--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2829
by: Duncan | last post by:
I am using the evaluation version of CE.NET 4.1. I had also installed the release version of the Compact Framework. I uninstalled the CE.NET 4.1, and then realized I needed it again and...
1
2488
by: Asad Khan | last post by:
Hi, I have Visual Studio 2002 Enterprise Architecture Edition. I was wondering if anyone has any information on how I can develop applications for .Net Compact Framework using this IDE. I've heard...
10
3300
by: Wayne Aprato | last post by:
I have a database that was written in Access 2003 using the Access 2000 file format. When I run the mdb in Access 2003 everything works fine. If I run it in Access 2000 the timer event won't fire...
5
2114
by: Jeroen CEuppens | last post by:
Hi, I want to have a timer that counts how long it takes to draw 2 bitmap files...... I use the compact framework, so I haven't got System.Timers Please help me... Greetz JC
6
2836
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
0
395
by: Daniel Passwater via DotNetMonster.com | last post by:
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...
4
4482
by: Naveen Mukkelli | last post by:
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...
5
3314
by: bob | last post by:
Hi Using 2003 - targeting the compact framework (c#), but would like to do most development using the full.net (manually leaving out stuff not in the compact framework). Q. Trying to find a...
5
4904
by: muzilli | last post by:
Howdy all, I would like to know how can I insert a Timer object in my class library? This timer object will start and stop in a determinated part or event of my program. I know how to do...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.