想做个子窗口做登陆软件~~
但不会一子窗口调用另一子窗口~~~请高手指教~~~~
详细一点

解决方案 »

  1.   

    Fome2 f2 = new Fome2();
    f2.open();
      

  2.   

    写错了
    Form2  f2 = new  Form2();
    f2.Show();//Form2是要打开的窗体
      

  3.   

    要调用的窗体
    Form2 frm=new Form2();
    frm.show();
    this.close()
      

  4.   

    using System;
    using System.Collections.Generic;
    using System.Windows.Forms;namespace TyreManage
    {
        static class Program
        {
            /// <summary>
            /// 应用程序的主入口点。
            /// </summary>
            [STAThread]
            static void Main()
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);            FormLogin lf = new FormLogin();
                lf.ShowDialog();
                if (lf.DialogResult.Equals(DialogResult.OK))
                {
                    Application.Run(new FormTyreManageMain(lf.UseName, lf.UsePassword));
                }  
            }
        }
    }
      

  5.   

    是CS的把,放2个panel  一个放登陆的  一个放子窗体的用显示和隐藏来实现private void btnLogin_Click(object sender, System.EventArgs e)
    {
    //登陆代码
    this.panel1.Visible=false;
    this.panel2.Visible=true;
    } private void Form1_Load(object sender, System.EventArgs e)
    {
    this.panel2.Visible = false;
    }如果是BS的就换成DIV,方法一样
      

  6.   

         private void Form1_Load(object sender, EventArgs e)
            {
                this.Controls.Clear();
                Form2 frm2 = new Form2();
                frm2.TopLevel=false;
                this.Controls.Add(frm2);
                frm2.Show();
            }
      

  7.   

     private void button1_Click(object sender, EventArgs e)
            {
                Form3 frm3 = new Form3();
                frm3.Show();
            }
    这个button在from2中