Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Close Form After fixed time

System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
private void Form1_Load(object sender, EventArgs e)
{
  timer.Interval = 10000;
  timer.Tick += new EventHandler(timer_Tick);
  timer.Start();
}

void timer_Tick(object sender, EventArgs e)
{
  this.Close();
}
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #Close #Form #After #fixed #time
ADD COMMENT
Topic
Name
1+7 =