本文介绍了如何在TabPage中自动调整表单大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 你好。 我有一些理由说我无法在MDI父表单中打开子表单,所以我改为使用TabControl,打开一个TabPage来包含一个子表单。我还设置了3个属性: TopLevel = false FormBorderStyle = none Dock = Fill 我的孩子表格全部来自其他EXE。但是当我打开一些子窗体作为tabpages,然后调整主窗体的大小时,我发现有些子窗体的DOCK属性有效,有些则没有。 怎么能我解决了这个问题?我没有发现它们之间的区别。 备注1. DOCK属性的表格调整大小来自执行文件时,DOCK属性失败的其他形式来自另一个执行文件。Hello.I had some reason that I can't open child forms in an MDI parent form, so I changed to use TabControl, open a TabPage to contain a child form. I have also set the 3 properties:TopLevel=falseFormBorderStyle=noneDock=Fill My child forms are all from another EXEs. But when I opened some child forms as tabpages, then resize the main form, I found that some child forms DOCK properties work, and some don't. How can I solve this problem? I didn't find the difference between them.Remark 1. forms that DOCK properties works while resizing are from an execution file, the other forms that DOCK properties fails are from the other execution file.推荐答案 请按照以下链接: 如何将第三方EXE嵌入(停靠)vb .net中的Panel / form [ ^ ] 在VB.NET MDI表单中打开外部应用程序 [ ^ ] vb.net在表单中启动应用程序 [ ^ ] Please, follow these links:How to embed (dock) Third party EXE into Panel/form in vb .net[^]Opening external application inside VB.NET MDI Form[^]vb.net Launch application inside a form[^] 这篇关于如何在TabPage中自动调整表单大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-21 20:03