Jump to content

Timer in C# for Compact Framework


Guest kepster

Recommended Posts

Guest kepster

Hi,

I'm attempting to develop a Smartphone application (Wm2003 at present) that features a Timer counting down which can be started & stopped by the user pressing a button on the phone's keypad (probably the left soft key) & displays the time on the screen.

I've found an example of how this can be done in the "proper" .Net, >>LINK<<, but that doesn't work in the compact framework. Can anyone show me an example of how to do this sort of thing?

Thanks in advance,

Matt

Link to comment
Share on other sites

Guest rogueqd

Start()

{

timer1.Enabled = true;

}

Stop()

{

timer1.Enabled = false;

}

Although I'm not sure if restarting will resume in the middle of an interval or not.

Edit: For the sounds you'll need to use OpenNETCF

Edited by rogueqd
Link to comment
Share on other sites

  • 1 month later...
Guest Tech

you can use sounds in .NET CF 2.0 using the media namespace or making low level calls to mscorlib

;)

when you stop() the timer the interval does reset

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.