Windows 7和XP之间的Windows窗体颜色变化 [英] Windows Forms color variation between Windows 7 and XP

查看:181
本文介绍了Windows 7和XP之间的Windows窗体颜色变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个vb.net Windows窗体应用程序使用4.0框架。当我在XP机器上运行应用程序时,我的控件的颜色都与我在IDE中设置的一致,这也是一台XP机器。

I have a vb.net Windows Forms app using the 4.0 framework. When I run the application on an XP machine, the color of my controls all match what the are set to in my IDE, which is also an XP machine.

在Windows 7计算机上运行此应用程序时,颜色都会更改。

When I run this application on a Windows 7 machine, the colors are all changed.

任何想法为什么这是,我怎么能使Windows 7匹配我的开发机器?

Any ideas why this is and how I can make Windows 7 match my Development machine?

p>

推荐答案

Windows窗体将承担任何主题他们正在运行的机器已启用 - 这是设计。老实说,在Windows 7上运行的Windows窗体看起来像XP窗体形式是没有意义的。你能给出一些上下文,为什么你想让窗体看起来像是在XP上运行吗?

Windows forms are going to take on whatever "theme" the machine they are running on has enabled - which is by design. Honestly, it wouldn't make sense for a windows form running on Windows 7 to look like an XP windows form. Could you give some sort of context for why you want your windows form to look like it's always running on XP?

这篇关于Windows 7和XP之间的Windows窗体颜色变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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