简体   繁体   English

当我更改 Windows 主题时,视觉方面会发生变化

[英]Visual Aspect changing when i change windows theme

after running my application.exe i noticed that when i change the windows xp theme (for example from normal to classical) the visual aspect of my application changes!Can someone please tell me what should i do to make a static GUI that doesn't change when i change the theme or switch from Windows xp to Windows 7 Ps: i'm working on .NET Framework 4运行我的 application.exe 后,我注意到当我更改 windows xp 主题(例如从普通主题到经典主题)时,我的应用程序的视觉方面发生了变化!有人可以告诉我我应该怎么做才能制作一个没有的静态 GUI当我更改主题或从 Windows xp 切换到 Windows 7 Ps 时更改:我正在使用 .NET Framework 4

Thanks for any suggestion!感谢您的任何建议!

The UI look is changing because windows theme changes the default fonts which change the number of points needed for their rendering. UI 外观正在发生变化,因为 Windows 主题更改了默认字体,从而更改了渲染所需的点数。

open the visual studio with the default theme then change it and debug the winform you'll see how the controls change sizes...使用默认主题打开visual studio,然后更改它并调试winform,您将看到控件如何更改大小...

read this msdn article it might help you decide what to do next Automatic Scaling in Windows Forms阅读这篇 msdn 文章,它可能会帮助您决定下一步在 Windows 窗体中进行自动缩放

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM