work on a window in C #. I want to write on registry.i know how to write on registry.I use the syntax below to write to the registry.
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.cre.CreateSubKey("asb");
key.SetValue("asb", "Isabella");
key.Close();
But the problem is that I can not write in the specified place. I want to write below.
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
At this point, add the string value = "abc" and ValueData = "efd"
If you have a request plz ask.thanks in advance.
source
share