471,337 Members | 1,165 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Detect XP themes under .NET 2.0?

Hi,

I'm trying to detect if XP themes are enabled or not in code. This not as
easy as it seams, however. I thought Application.VisualStyleState would be
of a lot of help, but unfortunately, it was not.

Basically, I need something similar to this:

If LegacyOS Then 'W2K, W98, WME
return False
ElseIf OsSupportsThemes Then 'XP, 2k3, Longhorn
If ThemesEnabled Then ' Application.EnableVisualStyles was called,
or manifest is present
Return True
Else
Return False
End If
End If
Is there a method I'm not aware of in the .NET 2.0 framework, or a good way
to do this?

Thanks!

Carl
Jul 22 '05 #1
0 900

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Etienne Charland | last post: by
reply views Thread by Carl Mercier | last post: by
reply views Thread by Full Decent | last post: by
6 posts views Thread by Fred Hedges | last post: by
4 posts views Thread by Sean | last post: by
6 posts views Thread by Clinton Farleigh | last post: by
3 posts views Thread by WT | last post: by
11 posts views Thread by New Bee | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.