Can we show the windows form for just some specific time span, say 1 minute, then close it automatically?
Add a Timer control from Toolbox. Set some attributes.
this.timer1.Enabled = true;
this.timer1.Interval = 60000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
and define Tick event handler
private void timer1_Tick(object sender, EventArgs e)
{
Close();
}
Use a Timer
, let it close the form after the amount of time you need it to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With