开发者

Multi resolution

开发者 https://www.devze.com 2022-12-20 19:48 出处:网络
How To make user Control run 开发者_C百科on multiple resolution it run will on resolution 1366 X 768but when I try to run it on 800 X 600

How To make user Control run 开发者_C百科on multiple resolution it run will on resolution 1366 X 768 but when I try to run it on 800 X 600 part of it did not appear , wheteherI docked it on the main form


You could have a look at

How do I resize controls on a form to fit different resolutions?


You have to distinguish between Size of your Control and the used dpi settings.

The size part is quite easy. Just use the Anchor and Docking properties of your user control and set also these properties of all child controls within your user control.

If your layout is more complex you can use the TableLayoutPanel. And don't forget the usage of MinimumSize and maybe MaximumSize.

About taking care with different dpi Settings i didn't make any further investigations. So maybe someone else knows how you can accomplish this problem within .Net

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号