How can I make MdiChild forms be in tabs in C#?

我的梦境 提交于 2019-12-12 09:41:43

问题


I have a MDIparent Forma and which has some mdichild forms in it. Can you help me some how put the mdichilds in Tabs like google chrome , firefox , IE , Opera ...


回答1:


There's a good article on MDI forms with TabControls here: http://www.codeproject.com/KB/cs/MDITabBrowsing.aspx




回答2:


There's nothing really to be gained by using MDI once you have tabs.

MDI is designed to handle multiple forms residing inside the same container. However, with tabs each form is in a different container. I can't see any benefit to using MDI in this scenario and would avoid it.




回答3:


Try something like this:

myForm.TopLevel=false;
myForm.TopMost=false;
tabPage1.Controls.Add(myForm);


来源:https://stackoverflow.com/questions/6234509/how-can-i-make-mdichild-forms-be-in-tabs-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!