如何在特定区域中调用Mainform中的多个表单而不更改Mainform Layout [英] How to call multiple form in Mainform in particular area without changing Mainform Layout
本文介绍了如何在特定区域中调用Mainform中的多个表单而不更改Mainform Layout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用MDIParent表格。
但是读到MDI不是一个好习惯。
所以还有另一个使用UserControl的想法。哪个工作正常
但我已经创建了几个表格,所以解决方案是什么。
我是否需要转换所有表格到UserControl或者还有另一种方法可以在Mainform中的特定位置调用多个表单(dock)。
我也不想使用tabcontol。
提前谢谢
解决方案
实际上你想要什么?
想要更多1表格mdi父表单?
然后创建一个类然后使用Get set for Form name
如果该表单的实例不可用则打开新表单否则返回当前窗口
I tried using MDIParent form.
But read that MDI is not good practise to use.
So there is another idea of using UserControl. which works fine
but I have already created several forms so what would be the solution for this.
Do I need to convert all forms to UserControl or there is another way to call multiple forms in Mainform at particular location only(dock).
I dont want to use tabcontol either.
Thank you in advance
解决方案
actually What u want ?
Want morethen 1 form in mdi parent form ?
then Create a class and then use Get set for Form name
if instance of that form is not available then open new form otherwise return Current Window
这篇关于如何在特定区域中调用Mainform中的多个表单而不更改Mainform Layout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文