避免控件重叠 [英] avoiding overlapping the controls

查看:69
本文介绍了避免控件重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

frnd ...

我在表单上有一些带有锚定属性的面板..当我调整表单的大小时,这些面板重叠在其他面板上..如何避免这种情况...
任何人都可以帮助我...

在此先感谢...

解决方案

您的锚点设置不正确.您将不得不自己解决这个问题.它将要求您进行更改,然后进行测试.

编辑==============

回应您的评论-如果仍然无法执行,则表示您做得不正确.尝试对WinForms锚点进行以下说明:

http://www.techrepublic.com/article/manage-winform-controls-using-the-anchor-and-dock-properties/6165908 [
请阅读我过去的回答中的建议:
GUI外观-C#.Net [屏幕分辨率改变时,Zom Out发生故障 [ ^ ].

—SA


除了SAKryukov提到的内容外,您还可以查看.Net布局面板:
FlowLayoutPanel [ TableLayoutPanel [ Windows窗体的布局管理器控件 [ ^ ],您将拥有真正灵活的功能与之合作.

问候
Espen Harlinn


hi frnd...

i have some panels on the form with the anchor propety.. when i resize the form the panels are overlapping on to other.. how to avoid this...
any one help me...

thanks in advance...

解决方案

Your anchors aren''t set correctly. You''re gonna have to muscle through this yourself. It''s going to require you to make a change, and then test it out.

EDIT ==============

In response to your comment - if it still doesn''t work, you still aren''t doing it right. Try this explanation of WinForms anchors:

http://www.techrepublic.com/article/manage-winform-controls-using-the-anchor-and-dock-properties/6165908[^]

If that''s not enough, google is your friend (I googled "designer control anchors" to find the link above).


Avoid anchors! There are much better ways to do a stable layout. Prefer Dock.

Please read my recommendation from my past answers:
GUI Apperance - C#.Net[^],
Zom Out malfunctions when Screen resolution changes[^].

—SA


Apart from what SAKryukov mentions, you can take a look at the .Net layout panels:
FlowLayoutPanel[^]
TableLayoutPanel[^]

And if you can get yourself a copy of the DevExpress Layout Manager Controls for Windows Forms[^], you will have something really flexible to work with.

Regards
Espen Harlinn


这篇关于避免控件重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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