/ Published in: C#
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 Put this at top using Microsoft.Win32; Read key RegistryKey regKey1 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\test\\Preferences"); string test = (string)regKey1.GetValue ("TestProperty"); Write key RegistryKey masterKey = Registry.LocalMachine.CreateSubKey("SOFTWARE\\test\\Preferences"); masterKey.SetValue("TestProperty", "32"); masterKey.Close();
Comments
                    Subscribe to comments
                
                