面板和用户控件 [英] panel and user controls

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

问题描述

我正在构建一个项目,当我运行项目并处理用户控件时,我在其中使用多个面板和动态用户控件.面板的位置改变了发生这种情况的原因.


如何在表单上锁定面板位置.


在此先感谢...

I am building a project where I am using multiple panel and dynamic user controls when I run my project and work on user controls. Location of panels changes why this happens.

Or

How to lock panel locations on form.


Thanks in Advance...

推荐答案

,您可以创建自定义用户控件类并将其添加到面板中. 如果将控件添加到类似Panel的控件中,则位置是相对于Panel而不是窗体的相对位置.
也许还检查锚定属性.
you can create a custom user control class and add it to a Panel.
if you add your control to a control like a Panel the location is relative to the Panel not the form.
maybe also check anchoring properties.


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

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