问个傻逼问题阿。。。。
我想让主窗体在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
------解决方案--------------------
这样就可以了