问个傻逼问题阿。。。。
我想让主窗体在5秒后自动结束,咋弄阿?
private void timer1_Tick(object sender, EventArgs e)
{
Form form1 = new Form();
//System.Diagnostics.Process.GetCurrentProcess().Kill();
form1.Dispose();
}
为啥没反应???我已经设置Interval=5000了为啥木有反应咧???
[解决办法]
private void timer1_Tick(object sender, EventArgs e)
{
Close();
}
[解决办法]
timer1设置间隔5000,里面写close
[解决办法]