codeblue1212
New member
- Joined
- Dec 7, 2008
- Messages
- 1
- Programming Experience
- 3-5
I am trying to develop a an Internet Explorer extension to do that I need to add some registry keys
So I have the following code to accomplish this:
In the registry that will create a subkey menuitem and it makes a default value of nothing. I want to be able to edit that value.
If i do regKey.SetValue("(Default)", myvalue) it makes another key named (Default) and sets the value correctly, however I need to edit the original default value that is created when the key is created. The only way I can edit that value is if I do it manual through registry editor. Any suggestions?
So I have the following code to accomplish this:
VB.NET:
Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Internet Explorer\\MenuExt", True)
Dim regKey As RegistryKey = key.CreateSubKey("&menuitem")
In the registry that will create a subkey menuitem and it makes a default value of nothing. I want to be able to edit that value.
If i do regKey.SetValue("(Default)", myvalue) it makes another key named (Default) and sets the value correctly, however I need to edit the original default value that is created when the key is created. The only way I can edit that value is if I do it manual through registry editor. Any suggestions?