Add a Timer control from the toolbar. Set some attributes.
this.timer1.Enabled = true;
this.timer1.Interval = 60000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
and define a Tick event handler
private void timer1_Tick(object sender, EventArgs e)
{
Close();
}
source
share