Jump to content


Photo

Timer in C# for Compact Framework

- - - - -

  • Please log in to reply
2 replies to this topic

#1
kepster

kepster

    Newbie

  • Members
  • Pip
  • 7 posts
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

  • 0

#2
rogueqd

rogueqd

    Regular

  • Members
  • PipPip
  • 64 posts
  • Devices:Nokia 6500 Slide
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, 06 April 2006 - 12:21 AM.

  • 0

#3
Tech

Tech

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,490 posts
  • Devices:E200 2xC500 SP5m Vario
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

  • 0
http://www.spapps.co.uk

Visit the Spapps UK Forums!!!
Spapps UK Forums [new]
Spapps UK Forums alternative link
^^^ CLICK ME ^^^

Current Projects:

DAR~ling update tba*
WMP Remote** (need new ideas!!)

TV Remote codenamed meetu (postponed)
mini PC Controller codenamed mawk




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users