SplitContainer的面板作为MDI父其他形式 [英] SplitContainer's panel as the MDI parent for other forms
问题描述
我有一个 SplitContainer的控制
补充道。我希望把
第二面板上的其它形式(是Panel2
)。然而,这是不可能的
设置一个全新的形式向的MdiParent
属性是Panel2
。
I have got a control with a Splitcontainer
added. I want to place
another forms on the second panel (Panel2
). However, it is not possible to
set the MDIParent
property of a brand new form to Panel2
.
因此,问题是 - 我怎么可以设置 SplitContainer中的
面板的的MdiParent
另一个控制?
Thus, the question is - how can I set the SplitContainer's
panel as the MDIParent
for another controls?
感谢您提前为线索!
欢呼声
推荐答案
这是的MdiParent只能是另一种形式。你需要做的是设置什么 TOPLEVEL
为False子窗体上。然后,你可以把它添加到任何控制就像它是任何其它控制(通过将其添加到父控件的控制
集合)。然而,它不会工作像它在MDI容器(如在你将无法以最小化或最大化)。
An MDIParent can only be another Form. What you need to do is set TopLevel
to False on the child Form. Then you can add it to any control just like it was any other control (by adding it to the parent control's Controls
collection). However, it won't work like it does in an MDI container (as in you won't be able to minimize or maximize it).
这篇关于SplitContainer的面板作为MDI父其他形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!