Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows XP Manifest for .exe
#8
I think I will try something easier and just have different dialog settings (size, bmp's etc) for different themes that might be running on the computer. I just need to find out how to programatically determine the theme.

I found this

http://blog.shekharpro.com/2010/12/get-c...theme.html

and tried to implement their code example

Code:
Copy      Help
public string GetTheme() {   string RegistryKey = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes";   string theme;   theme = (string) Registry.GetValue(RegistryKey, "CurrentTheme", string.Empty);   theme = theme.Split('\\').Last().Split('.').First().ToString();   return theme;

in QM like this:

Code:
Copy      Help
str CurrentTheme
str RegistryKey = "\Software\Microsoft\Windows\CurrentVersion\Themes"
_i = rget(CurrentTheme "CurrentTheme" RegistryKey "HKEY_CURRENT_USER")
out _i
out CurrentTheme
but fails to return anything.
Any thoughts?
Thanks,
S


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)