流布局面板,表布局面板 [英] flow layout panel,table layout panel

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

问题描述



我在Windows窗体中添加了一个流布局面板和一个表布局面板.然后在它们两个中都添加了3个标签,1个文本框和2个按钮控件.
现在我运行项目,并且希望用鼠标调整窗口大小(增加或减小窗口大小)时页面的设置保持不变.控件应根据窗口的大小进行调整.
该问题的解决方案是什么?

谢谢

Hi,

i have added one flow layout panel and one table layout panel in windows form.then i have added 3 labels,1 text box and 2 button controls in both of them.
now i run the project and i want that the setting of my page will remain same if i resize the window with mouse(increasing or decreasing the size of window).The control should adjust itself according to the size of window.
what is the solution for the problem??

thanks

推荐答案

仍然不太确定您想要什么,通过应根据窗口的大小自行调整"-在FlowLayoutPanel中,它们作为控件来回移动增长和收缩.在TableLayoutPanel中,它们到处移动并增长/缩小.

如果他们没有这样做,那么确定重新调整表单大小时,您确定面板会不断扩大或缩小吗?您是否检查了Anchor属性?
Still not quite sure what you want, by "should adjust itself according to the size of the window" - In the FlowLayoutPanel, they move around as the control grows and shrinks. In the TableLayoutPanel, they move around and grow / shrink.

If they are not doing that, are you sure that your panels are growing and shrinking when you re-size the form? Have you checked the Anchor properties?


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

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