Try this code:
private Timer timer;
private int count;
private void Form1_Load(object sender, EventArgs e)
{
count = 0;
timer = new Timer();
timer.Interval = 1000;
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
}
void timer_Tick(object sender, EventArgs e)
{
count++;
if (count == 120)
{
count = 0;
timer.Stop();
Application.Restart();
}
}