B
Ben
I think I might have found a bug in Visual Studio.
The following code should work and doesn't:
My.Computer.Registry.LocalMachine.CreateSubKey("Software\Dravet")
My.Computer.Registry.LocalMachine.SetValue("HKEY_LOCAL_MACHINE\Software\Dravet",
"loglevel", "1")
My.Computer.Registry.LocalMachine.GetValue("loglevel")
This code does work:
My.Computer.Registry.LocalMachine.CreateSubKey("Software\Dravet")
My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\Software\Dravet",
"loglevel", "1")
My.Computer.Registry.LocalMachine.GetValue("loglevel")
They are equiviant lines of code, so why doesn't the top code work? From
what I can gather from the MSDN website both pieces of code should work.
Thanks,
Ben
The following code should work and doesn't:
My.Computer.Registry.LocalMachine.CreateSubKey("Software\Dravet")
My.Computer.Registry.LocalMachine.SetValue("HKEY_LOCAL_MACHINE\Software\Dravet",
"loglevel", "1")
My.Computer.Registry.LocalMachine.GetValue("loglevel")
This code does work:
My.Computer.Registry.LocalMachine.CreateSubKey("Software\Dravet")
My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\Software\Dravet",
"loglevel", "1")
My.Computer.Registry.LocalMachine.GetValue("loglevel")
They are equiviant lines of code, so why doesn't the top code work? From
what I can gather from the MSDN website both pieces of code should work.
Thanks,
Ben