初学C#帮忙___看如何关闭程序!
想做一应用程序! 
 From1为第一个窗口(登陆窗)输入密码后转到Form_main   (主窗口) 
 通过以下转到新窗口 
 Form_main   a=new   Form_main   (); 
 this.Hide(); 
 a.Show(); 
 a.Activate(); 
 在主窗口里按关闭按钮可以关闭 
 但有一问题就是如果在Form_main(MDI)中用窗口的 "X "来关闭.虽是关了窗口但整个程序还是在内存中运行!     
------解决方案--------------------关于Login窗口,看下愚翁的这篇文章 
 http://blog.csdn.net/knight94/archive/2006/04/06/652394.aspx
------解决方案--------------------把这个写在From_main的Closed事件里
------解决方案--------------------application.exit() 
 a.Dispose();