强制Windows经典主题的应用经典、主题、Windows

2023-09-07 00:28:13 作者:江湖°游侠儿

我已经搜索围绕这个问题,但未能拿出任何东西。

Hey Guys, I've searched around for this question but couldn't come up with anything.

问题:

如果用户更改配色方案在他们的Windows桌面,它的调整在我的.NET应用程序的一些功能。

If a user changes the Color Scheme on their Windows Desktop, it tweaks some functionality in my .net application.

有什么办法,我勉强我的应用程序中使用Windows经典主题,不管是什么用户的主题被设定为?

Is there any way for me to FORCE my application to use the Windows Classic Theme, regardless of what the user's theme has been set as?

谢谢!

推荐答案

如果您正在使用Visual Studio:当你去你的应用程序项目的属性,你会发现一个复选框的启用XP视觉样式的。如果禁用,任何主题化应适用于您的应用程序。我认为这等同于取消注释$ C $的线c用户nobugz提到的。

If you are using Visual Studio: when you go to your application project's properties, you will find a checkbox Enable XP Visual Styles. If you disable that, no theming should be applied to your application. I assume this is equivalent to uncommenting the line of code that user nobugz mentioned.