Write Registry Entry code
Microsoft.Win32.RegistryKey key;key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("names");
key.SetValue("pankaj Sharma", "Developer");
key.Close();
Read Registry Entry Code
string s = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("names").GetValue("Pankaj Sharma").ToString();by: Pankaj Sharma