Windows XP到Windows 7的对象变色问题 [英] Object discoloration problem of Windows XP to Windows 7

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

问题描述

我已经在.NET 3.5,VS 2008,WinXP中开发了Windows窗体应用程序.我在表格中使用了DataGridView控件.当我在Windows XP中运行该应用程序时,网格将正确显示,但是如果我在Windows 7中运行该应用程序,则网格将显示为黑色.

在Windows XP和现在的Windows 7上编写的程序,具有多种形式,并且数据网格和文本框具有黑色变色.
我该怎么办才能正确使用Windows 7

请帮助我....:((:(((

I''ve developed a Windows Forms application in .NET 3.5, VS 2008, WinXP. I''ve used a DataGridView control in the form. When i run the application in Windows XP the grid is displayed properly but the same application if i am running it in Windows 7, the grid is displayed in black color.

Programs written on Windows XP and now Windows 7 in many forms and datagrid and textbox given to black discoloration.
What can I do to get right in Windows 7

plz help me.... :(( :((

推荐答案

使用硬编码的Color而不是SystemColors.这样它们就不会改变.
Use hard-coded Colors, not SystemColors. This way they will not change.


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

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