C# - How to set value of (Default) in the registry?
Hi!
How can I set the value of the (Default) key?
Somehow registryKey.SetValue("(Default)", "value");
Doesnt work.
~Matt
Hi!
How can I set the value of the (Default) key?
Somehow registryKey.SetValue("(Default)", "value");
Doesnt work.
~Matt
you don't need to use "(Default)", instead just leave it empty
like this registryKey.SetValue("", "value");
/Jocke
defaultbrowser1.SetValue(
"", "a");I get an exception:
System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
Matt
Im using Windows Vista but it works fine if I edit HKEY LOCAL MACHINE or CURRENT USER. It just wont work for CLASSES ROOT.
~Matt