在Windows XP中重叠控件 [英] Overlapping controls in Windows XP

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

问题描述

我已经在Windows 7开发的Windows桌面应用程序在VS 2010中;当我安装了Windows XP中的应用程序,一些文本框和标签相互重叠。

I have developed a Windows Desktop Application in VS 2010 in Windows 7; when I installed that application in Windows XP, some of the textboxes and labels overlap one another.

总之,安装基于Windows 7到Windows XP的应用程序后,视觉设计过程中已经失败我和我的控制,现在重叠。

In short, after installing an application built on Windows 7 to Windows XP, the visual design process has failed me and my controls are now overlapped.

我可以期待解决此问题?

What can I look to resolve this?

推荐答案

听起来像是在两个操作系统的DPI设置不匹配。从内存的Windows 7有一个更高的默认设置为Windows XP。

Sounds like a mismatch in the DPI settings in the two operating systems. From memory Windows 7 has a higher default setting to Windows XP.

如何检查,在两个版本更改值:

How to check, change the value in both versions:

的Windows 7 - DPI显示大小设置 - 更改

<一个href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/display_use_large_or_small_fonts.mspx?mfr=true"相对=nofollow>要增加或减少物体在屏幕上的大小和文字

如果你想同时满足默认你需要设计你的应用程序,以应付不同之处。退房的Control.Anchor和Control.Dock性能的详细信息,如何确保你的控件的大小适当的:

If you wish to cater for both defaults you will need to design your application to cope with the differences. Check out the the Control.Anchor and Control.Dock properties for details on how to ensure you controls size appropriately:

Control.Anchor物业

Control.Dock物业

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

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