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

主宰稳场 提交于 2019-12-05 18:10:29

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

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.

Try something like this:

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