title: Save and Get a Registry Value in 'HKEY_LOCAL_MACHINE\Software' using VB.NET
body: <p>In my VB.NET project I want to save and get a registry value in "HKEY_LOCAL_MACHINE\Software" but I am only able to save and get it in "HKEY_LOCAL_MACHINE" but not software. </p>
  
  <p>Here is my code:</p>
  
  <p>For setting the value</p>
  
  <pre><code>My.Computer.Registry.LocalMachine.SetValue("Study", "1")
  </code></pre>
  
  <p>For getting the value</p>
  
  <pre><code>Dim RegistryCheck As String = My.Computer.Registry.LocalMachine.GetValue("Study")
  </code></pre>