如何将Windows窗体分为两个或更多部分? [英] How to split windows form in two or more part?

查看:103
本文介绍了如何将Windows窗体分为两个或更多部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将c#Windows应用程序分为两部分?我认为SpliteContainer或splitter控件可用于执行此操作.我使用spliteContainer控件,但它只水平分割了窗口,但我想垂直分割.当我将其Dock属性设置为bottom时,拆分器控件就可以执行此操作.但是我不能在运行时使用它.它只是更改游标类型,但不能调整吐出的区域的大小.

How can I split the c# windows application in two sections? I think SpliteContainer or splitter control can be used to do this. I used spliteContainer control, but it split the windows only horizontally but I want to split it vertically. Splitter control can do it when I set the Dock property of it to bottom. But I cannot use it runtime. It just change the cursor type but can not resize the spited area.

推荐答案

您可以使用
You could use TableLayoutPanel[^] for this purpose.

Just Select Dock property to fill.


检查 [ ^ ]链接.可能会对您有所帮助.
check this[^] link. it may help you.


这篇关于如何将Windows窗体分为两个或更多部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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