Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I tried to make a small game that's need a timer, countdown from 10 to 0. But at this Visual Studio there is no Timer Component, and DispatcherTimer Not mapped to an xmlns.

I Tried to use TimeSpan, that have this field "TicksPerSecond" But this example dosen't help me to make my countdown timer :
http://msdn.microsoft.com/en-us/library/system.timespan.tickspersecond.aspx[^]

TimeSpan also have this method "FromSeconds", and i Can't also use this one for my countdown timer :
http://msdn.microsoft.com/en-us/library/system.timespan.fromseconds.aspx[^]

what can I do for this countdown timer?

[edit] clickable links added [/edit]
Posted
Updated 4-May-12 11:55am
v2
Comments
[no name] 4-May-12 22:47pm    
And why can't you use DispatcherTimer?

1 solution

from references you need to add reference from solition explorer.
u can add timer referece from the diolog shown.

and then use Timer class it has so many properties.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900