Using timers and DateTime.Now
Ok thanks. How do I do that? After the call to the DispatcherTimer constructor, start typing this: timer.Tick += Visual Studio should prompt you about pressing TAB for auto-generating a Tick handler....
View ArticleUsing timers and DateTime.Now
Yes: you missed to add the handler to the Tick event. Ok thanks. How do I do that?
View ArticleUsing timers and DateTime.Now
...for Windows Phone 7, I was reading about dispatch timers or something)... Hi, I don't develop on the phone so this might be useless advise however on the Xbox most people suggest using a Stopwatch...
View ArticleUsing timers and DateTime.Now
Whenever I type in "DispatcherTimer" I get an error. You're probably missing a 'using' statement. Here's a tip: if DispatcherTimer is underlined after you type it, right-click on it. If "Resolve" is in...
View ArticleUsing timers and DateTime.Now
Whenever I type in "DispatcherTimer" I get an error. You're probably missing a 'using' statement. Here's a tip: if DispatcherTimer is underlined after you type it, right-click on it. If "Resolve" is in...
View ArticleUsing timers and DateTime.Now
Whenever I type in "DispatcherTimer" I get an error.Do you have a "using System.Windows.Threading;" statement in the .cs file where you are trying to use this? If not, you have to reference the...
View ArticleUsing timers and DateTime.Now
i was confused with the square brackets a moment there but I've got it now, thanks! Can anyone tell me about using timers? This is all I could find in relation to windows phone...
View ArticleUsing timers and DateTime.Now
Check out DateTime.ToString(). You can use textblock1.Text = DateTime.Now.ToString([format]) Particularly, check out the Standard format strings, and then the Custom Format strings. If you are using...
View ArticleUsing timers and DateTime.Now
Ok I found a way to solve the DateTime problem: textBlock1.Text = Convert.ToString(DateTime.Now.Hour) + ":" + Convert.ToString(DateTime.Now.Minute) + ":" + Convert.ToString(DateTime.Now.Second); is...
View ArticleUsing timers and DateTime.Now
How can I use timers, can someone give me the basics (or link me to a helpful article, as usual the MSDN documentation I used just gave me loads of errors, even though it said it worked for Windows...
View Article