调整窗体大小时更改用户控件的位置 [英] Changing the Location of User Control when Form Resizes

查看:63
本文介绍了调整窗体大小时更改用户控件的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友..
我有一个表格..在里面有两个面板(左面板和右面板)
当表单调整大小时面板也会增加..我的问题是当表单调整为不同大小时如何将用户控件放置在右侧面板的中心...

在此先感谢...
Harish Reddy

hi friend..
I have a form.. in wihch 2 panels are there(left panel and right panel)
when the form resizes the panels will also increases.. my question is how to place the user control at the center of the right panel when the form resizes to different size...

thanks in advance...
Harish Reddy

推荐答案

使用锚点将控件保持在正确的位置.

http://msdn.microsoft.com/en-us/library/8y52cxte (v = vs.80).aspx [
Use Anchors to keep the controls at the right position.

http://msdn.microsoft.com/en-us/library/8y52cxte(v=vs.80).aspx[^]


请考虑我过去对耐分辨率UI的建议:

屏幕分辨率更改时,Zom Out发生故障 [ ^ ],
GUI外观-C#.Net [
Please consider my past advises for resolution-tolerant UI:

Zom Out malfunctions when Screen resolution changes[^],
GUI Apperance - C#.Net[^].

—SA


这篇关于调整窗体大小时更改用户控件的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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