有些问题不用太深究,要是想理解原理的话应该看看windows的相关原理

解决方案 »

  1.   

    Form form = new form;
    form.toplevel = false;
    form.visible = true; 
    this.panel1.controls.add(form);
    这样就能在panel里增加一个form了在其他的窗体里也可以
      

  2.   

    这样就能在panel里增加一个form了 在其他的控件里也可以
      

  3.   

    至于想把窗口加到控件中是可以的,方法有二种
    一种:
      用API --setparent 可以装任一控件包括窗口(不管控件是哪个程序的)比较恐怖。。呵呵
      将窗口加到Contrl,小KS我试过的哦
    二种:
       Form2 frm=new Form2();
    frm.TopLevel=false;//--重要的一句
    frm.Show();//--重要的一句
    this.groupBox1.Controls.Add(frm);
      

  4.   

    谢谢楼上的回答。
    第二种方法我试过了,但我是我要的效果。
    其实我要的效果是建立Windows项目后进入时的设计窗口的效果。
      

  5.   

    I don't program winform much, so I am afraid I cannot help youthe FrameDesigner class you are talking about is private, so you cannot use itas for RootDesigner, here is a good article (you might have seen it, if so, ignore my reply):.NET Shape Library: A Sample Designer 
    http://windowsforms.net/articles/shapedesigner.aspxalso see
    http://www.windowsforms.net/Default.aspx?tabindex=3&tabid=40#Designer
      

  6.   

    你给的链接我已经看过了。但还是没找到想要的答案。但仍感谢的你回答。
    看来winform 的程序看到这也就不能再深究下去了,该多看看ASP.NET方面的了!