Form   newform=new Form2();   
newform.Show();   
    this.Close();
怎么两个 窗体都关了...
怎么下才让Form1 关Form2 不关呢?

解决方案 »

  1.   

    [STAThread]
    static void Main() 
    {
    Application.Run(new Form1());
    }
    到你的窗体代码中找这句,
    然后去查一下这句的意思
      

  2.   

    在NET里是这样的.如果想解决,你就要反过来思考.
    将FORM2做为主窗体
    我遇到这种情况通常是这样做的.
    希望对你有帮助.
    在这一点上,不同于VB6时代。
      

  3.   

    Form   newform=new Form2();   
    newform.Show();   
    this.Hide();
      

  4.   

    this.Hide();
     是可以立马见效,但是关闭Form2 窗体后,仍然在系统中存在这个程序的进程,反馈完毕.
      

  5.   

    lz可以参考下这个帖子和文章
    http://community.csdn.net/Expert/topic/5178/5178376.xml?temp=.6932794
    http://blog.csdn.net/knight94/archive/2006/04/06/652394.aspx