且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在splitcontainer面板中打开表单

更新时间:2023-12-06 10:07:28

如果要在前面移动新打开的表单,请使用 Form.BringToFront [ ^ ]



但如果你的目标是拥有在SplitContainer面板中新打开的表单,然后查看 UserControl类 [ ^ ]包含所有UI元素。

从UserControl类中你然后可以创建一个具有UserControl或在面板中具有UserControl的新表单。
If you want to move the new opened form in front, then use Form.BringToFront[^]

But if your goal is to have the new opened form inside a SplitContainer panel, then look at UserControl class[^] to have all your UI elements in.
From the UserControl class you can then create a new form that has the UserControl or have the UserControl inside a panel.