Hi,
He is using System.Windows.Forms.Timer
System.Timers.Timer use the event Epalsed whether the one in Forms use Tick
The different according to MSDN is that the one in Windows.Form is
optimized for use in windows forms application.
Hope this help,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Chris Hornberger" <ch***@chornbe.com> wrote in message
news:53*************************@posting.google.co m...
I only use the timers in System.Timers;
using System.Timers;
or
System.Timers.Timer timer = new System.Timers.Timer();
then the rest of your code from there.
How do I get this to work?
Libraries to use etc.?
Thanks,
Patrick.
Timer timer = new Timer()
timer.Interval = 1000; // Once a second
timer.Tick += new EventHandler(OnTick);
timer.Enabled = true;
timer.Start();
protected void OnTick(object s, EventArgs ea)
{
MessageBox.Show("Tick Interval");
}