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
form.toplevel = false;
form.visible = true;
this.panel1.controls.add(form);
这样就能在panel里增加一个form了在其他的窗体里也可以
一种:
用API --setparent 可以装任一控件包括窗口(不管控件是哪个程序的)比较恐怖。。呵呵
将窗口加到Contrl,小KS我试过的哦
二种:
Form2 frm=new Form2();
frm.TopLevel=false;//--重要的一句
frm.Show();//--重要的一句
this.groupBox1.Controls.Add(frm);
第二种方法我试过了,但我是我要的效果。
其实我要的效果是建立Windows项目后进入时的设计窗口的效果。
http://windowsforms.net/articles/shapedesigner.aspxalso see
http://www.windowsforms.net/Default.aspx?tabindex=3&tabid=40#Designer
看来winform 的程序看到这也就不能再深究下去了,该多看看ASP.NET方面的了!