Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to Change windows theme programmatically using C Sharp, please help me !
thanks for who will answer .
Posted

1 solution

you need to programmatic change registry. first take backup of registry before changing the windows theme manual and give it name to reg1.reg , then change the windows theme manual and take registry backup after theme is changed and name it to reg2.reg then compare the 2 files with win-diff like tools. and see which changes are done in first step to second step and change the registry programmatic .
 
Share this answer
 
Comments
AhmedDheyaa 1-Apr-11 3:20am    
thank you my dear
but,could you explain more because Iam beginner
johannesnestler 1-Apr-11 8:32am    
You have to manipulate RegistryKeys from code - First look which Registry changes occur when you change the theme (through the normal Windows dialogs). To find these changes use the way snehaliteng showed you, or use a tool (e.g. ProcessMonitor). If you know which Registry values are changed, just do it from code (have a look at the msdn Doku for examples, search for Microsoft.Win32.RegistryKey or Microsoft.Win32.Registry classes)
johannesnestler 1-Apr-11 8:27am    
very good tip for monitoring registry changes - I just want to point out that there is a nice tool for watching system events called ProcessMonitor, it is contained in the free SysinteralsSuite http://technet.microsoft.com/en-us/sysinternals/bb842062

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900