I am trying to write to the registry and the objects that are suppose to be
handling this function are not working. Here is what is happening.
I am issuing the following commands:
RegistryKey reg =
Registry.CurrentUser.OpenSubKey("Software\\mykey\\ mysubkey\\Settings",
true);
reg.SetValue("DBPath", "c:\\temp");
when I execute these lines, the function does write to the registry,
however, it does not write to HKEY_Current_User. Its writing to HKEY_USER.
There are no entries at all in CurrentUser like the command suggests that
its writing to.
Can anyone help me with this as its been a real pain. I do this sort of
thing in Delphi everyday and have never had any problems. Can C# not work
with the registry?
Thanks,
glenn