Disappearing Colors
-
I'm not sure if this is a .NET framework issue or a windows XP to Vista transition issue but I have an application I've been developing in VS 2008 (C#), .NET framework 2.0, on a windows XP machine. Recently, my team was told that we needed make sure this was vista compatible so we moved over to a machine running vista and framework 2.0 and noticed that the background colors to the combo boxes had lost their backcolor property. When the page loaded the color would flicker and then go to the default grey. At first we thought it was a theme overriding out property so we disabled the theme first through windows and then in our code using uxtheme.dll, each to no avail. Thus far the interwebs have yielded no results so I'm wondering if this is a random act of God.
"The shortest distance between two points is under construction" -Noelie ALtito
-
I'm not sure if this is a .NET framework issue or a windows XP to Vista transition issue but I have an application I've been developing in VS 2008 (C#), .NET framework 2.0, on a windows XP machine. Recently, my team was told that we needed make sure this was vista compatible so we moved over to a machine running vista and framework 2.0 and noticed that the background colors to the combo boxes had lost their backcolor property. When the page loaded the color would flicker and then go to the default grey. At first we thought it was a theme overriding out property so we disabled the theme first through windows and then in our code using uxtheme.dll, each to no avail. Thus far the interwebs have yielded no results so I'm wondering if this is a random act of God.
"The shortest distance between two points is under construction" -Noelie ALtito
Vista adds more styling to comboboxes than Windows XP did. You may have to rewrite the graphical code for those comboboxes if possible to make it more appealing under vistas themes. As far as code is concerned, you should have absolutely no problem with moving it vista/.NET 3.0. The only problem is with overriding graphical themes/control aspects.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog
-
Vista adds more styling to comboboxes than Windows XP did. You may have to rewrite the graphical code for those comboboxes if possible to make it more appealing under vistas themes. As far as code is concerned, you should have absolutely no problem with moving it vista/.NET 3.0. The only problem is with overriding graphical themes/control aspects.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog
Yeah, to solve the problem we had to change around a few things and make some sacrifices as far as a machine using vista is concerned. We just changed the style to "flat" whenever we detected Vista. It's not as pretty but it's a fairly quick and easy solution. Thanks for you reply. Much appreciated.
"The shortest distance between two points is under construction" -Noelie Altito