hey.
how can i determine, via vb.net code, if a user has xp style enabled on their desktop? Easy enough to determine OS version, but what about xp style?
thanx.
Printable View
hey.
how can i determine, via vb.net code, if a user has xp style enabled on their desktop? Easy enough to determine OS version, but what about xp style?
thanx.
why u need to do that? i mean, what's the purpose?
i think the style may not be the static property of the OS for one PC as it may vary from user to user.
There could be several reasons. I'd like to know too.Quote:
Originally posted by pvbangera
why u need to do that? i mean, what's the purpose?
i think the style may not be the static property of the OS for one PC as it may vary from user to user.
When developing visual ownerdrawn controls it would be nice if the control automatically follows the theme.
So for that reason it would be nice to know if the styles are used or not, and if they are, which one. (not considering custom styles, but only the built-in styles)
They way I do it at the moment, is checking the RGB values of systemcolor.activecaption. This colour is unique for LunaBlue, OliveGreen and Silvergrey. If the color doesnt match any of these three, I assume styles aren't used.
But this method isn't very reliable, because the user could easily have changed this color or the user could be using a custom theme with a totally different colorscheme.
Hi.
Found it.
You can look in the registry.
If you run RegEdit and browse to the following key, you find all the info you need : HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager
Then it's just a matter of looking up the ThemeActive value thru VB.
I hope this helps you. I know it helps me.. ;)
Geeee. Thanks. What do I owe you? :D :p
Well, maybe you can help me out some day...:wave:Quote:
Originally posted by jovton
Geeee. Thanks. What do I owe you? :D :p