我们如何添加用户控件来形成? [英] How can we add user control to form?

查看:43
本文介绍了我们如何添加用户控件来形成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个用户控件。

说(UserControl1和UserControl2)

我想在主窗体上添加它。但是添加它时只能看到一个用户控件。

其他一个没有显示。

如何将表格划分为占用UserControl占用相同的空间。

I have 2 user control.
say(UserControl1 and UserControl2)
I want to add it on the main form.But when add it only one usercontrol is visible.
Other one is not shown.
How to divide the form to Occupy the UserControl to take same space.

推荐答案

我假设你的意思是一个控件在另一个上面?



UserControl只是一个控件,就像任何其他控件一样 - 所以通常的方式显示多个控件应该工作。您是否考虑过 SplitContainer控件 [ ^ ]他们两个?
I assume you mean the one control is on top of the other?

UserControl is just a control, like any other - so any of the usual ways of showing multiple controls should work. Have you considered a SplitContainer control[^] to hold them both?


这篇关于我们如何添加用户控件来形成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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