日期:2014-05-19  浏览次数:20843 次

快来拿分走人!this.Hide()
FORM1和FORM2  
FORM1中button下
Form2   f2=new   Form2();
this.Hide();
f2.Show();

进了FORM2后   关闭FORM2后   整个程序没关闭...
知道是form1还没关闭..
问如何FORM2关闭后   整个应用程序   关闭!!

------解决方案--------------------
关闭form2时调用Application.Exit();

------解决方案--------------------
在F2的FormClosed事件里写
Application.Exit()