Hi,
I'm trying to change current theme programmatically (c#).
I tried 2 option (thata didn't worked):
option 1:
Process p = new Process();
p.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
p.StartInfo.FileName = themePath;
p.Start();
problem: personalization window is open => theme is selected and applied BUT personalization window stays open.... if i try to close it (kill process p), then the theme is not being applied...
option2:
var thReg = Registry.CurrentUser.OpenSubKey("Software\\Microso ft\\Windows\\CurrentVersion\\Themes", true);
thReg.SetValue("CurrentTheme", themePath);
problem: registry key is being set to the correct value BUT theme is not applied...
Any idea..?
tnx!!
Moria
Bookmarks