static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
 
        }
这样之后 我在Form1.cs文件中 this.Hide()这样 主窗体就被隐藏但是并没有被关闭.我希望在第2 个窗体中 再把主窗体show出来要怎么做?Application.Run(new Form1());的对象没有办法调用啊?
感谢指点.

解决方案 »

  1.   

    问题是我不知道Application.Run(new Form1());这样生成的窗体对象是什么?
      

  2.   

    Form2 f2= new Form2() ;
    f2.Ower = this ;
    ....
    ....
    在f2窗体中:this.Ower.Show() ;
      

  3.   

    用激活 
    Dim ss As Form1
      ss.Activate()
      

  4.   

    Form1             Form2 f = new Form2();
                f.Tag = this;
                this.Visible = false;
                f.ShowDialog();Form2
    private void Form2_FormClosed( object sender , FormClosedEventArgs e )
            {
                if ( this.Tag != null )
                    ( (Form)this.Tag ).Visible = true;
            }