请教一下标题中的问题~~谢谢!!

解决方案 »

  1.   

    假设你要显示Form1
    那么可以
    new Form1().Show();
    如果你没有这样的构造函数算我没说
      

  2.   

     private void button1_Click(object sender, EventArgs e)
            {
                Form2 form2 = new Form2();
                form2.Show();
            }
      

  3.   

    Form2 f2=new Form2();
    f2.show();
      

  4.   

    Form1 frm=new Form1();
    frm.MdiParent=this;
    frm.Show(); 
    根据名称显示使用反射
      

  5.   

    某个方法里或者事件里写
    YourFrom frm =new YourFrom();
    frm.Show;//或者frm.ShowDialog()
      

  6.   

    这样说来,应该需要动用API了,查查ShowWindow的用法
      

  7.   

            [System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetForegroundWindow")]
            public static extern bool SetForegroundWindow( System.IntPtr hWnd);
    传窗体的句柄就好了
      

  8.   

    我想把这个窗口放在C#中的WinForm中显示出来,不是只把它置到前台,怎么做呢?
      

  9.   

            [System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetParent")]
            public static extern System.IntPtr SetParent( System.IntPtr hWndChild, System.IntPtr hWndNewParent);第一个参数是你要显示的窗体的句柄,第二参数是C#中窗体的句柄也就是父窗体了.