Timer example
-
Hi! I am trying to create a simple example with the System.Timers.Timer, and i can not. can someone show me where i need to declare in a win project this timer and how to use it(which event?how to declare it?) I have searched the web but i get only complex examples and not the simple one, even in the MSDN. Thanks :)
-
Hi! I am trying to create a simple example with the System.Timers.Timer, and i can not. can someone show me where i need to declare in a win project this timer and how to use it(which event?how to declare it?) I have searched the web but i get only complex examples and not the simple one, even in the MSDN. Thanks :)
Hi, the timer classes on MSDN contain a simple example. I have an article on timers, it comes with some test/demo code. The easiest timer to use (in a Windows app) is a Windows.Forms.Timer (not the System. Timers.Timer since that one ticks on another thread). :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google