I am trying to set up a timer in c#. In "using" part I have included this
using System.Windows.Forms.Timer;
My timer looks like this:
private Timer timer1;
public void InitTimer()
{
timer1 = new Timer();
timer1.Tick += new EventHandler(timer1_Tick);
timer1.Interval = 1000;
timer1.Start();
}
However "Timer" is underlined, and I am getting this error:
"The type namespace 'Timer' could not be found(are you missing a using directive or an assembly reference?)"
I thought, that this will be included by default. If not, what do I need to include as a reference?
Thank you.