在splitcontainer面板中打开表单 [英] open forms in splitcontainer panel

查看:111
本文介绍了在splitcontainer面板中打开表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在splitcontainer面板中打开第二个表单时,它会在已经打开的表单后面。

i需要打开splitcontainer面板的最新表单。

When open the 2nd form in splitcontainer panel it goes behind the already opened form.
i need to open the latest form front of splitcontainer panel.

推荐答案

如果要在前面移动新打开的表单,请使用 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.


这篇关于在splitcontainer面板中打开表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆