我们如何在Winforms中添加可折叠的Panal? [英] how can we add collapsible panal to winforms?

查看:94
本文介绍了我们如何在Winforms中添加可折叠的Panal?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何向WinForms中添加可折叠的Panal?
我在.NET中开发了一些WinForms,现在我想将这些表单安排在可折叠的窗格中. plz 请帮助我...
预先解冻...

Hi, how can we add collapsible panal to WinForms?
I''m developed some WinForms in .NET, now I want to arrange those forms in collapsible panal like. plz Please help me...
Thaks in advance...

推荐答案

您可以使用Width/HeightVisible属性来操纵System.Windows.Forms.Panel的可见性或大小.使用属性WidthHeight,您甚至可以设置折叠过程的动画.请参阅:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.width.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.height.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.size.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.visible.aspx [ ^ ].

祝你好运,
—SA
You can manipulate the visibility or the size of System.Windows.Forms.Panel by using either Width/Height or Visible properties. With the properties Width or Height you can even animate the process of collapse. Please see:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.width.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.height.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.size.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.visible.aspx[^].

Good luck,
—SA


只需根据需要更改面板尺寸(高度,重量)..
Just change the Panel size (height,wight) as your needs..


这篇关于我们如何在Winforms中添加可折叠的Panal?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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