Software Development Network>> Visual C#>> 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
Im using Windows Vista but it works fine if I edit HKEY LOCAL MACHINE or CURRENT USER. It just wont work for CLASSES ROOT.
you don't need to use "(Default)", instead just leave it empty
like this registryKey.SetValue("", "value");
/Jocke
defaultbrowser1.SetValue(
I get an exception:
System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
Matt
C# - How to set value of (Default) in the registry?
biscuithead
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
Frank Miller
Giritharan
you don't need to use "(Default)", instead just leave it empty
like this registryKey.SetValue("", "value");
/Jocke
Thomas LEBRUN
Matt
William Bartholomew
defaultbrowser1.SetValue(
"", "a");I get an exception:
System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
Matt