title: VB.Net Read DWORD from Registry
body: <p>How to Read DWORD from registry in VB.Net
  I tired below code</p>
  
  <pre><code>Dim rk As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows NT\CurrentVersion", False)
  
  Dim registryValue As Int32 = CInt(rk.GetValue("InstallDate", Microsoft.Win32.RegistryValueKind.DWord))
  </code></pre>
  
  <p>But it always returns 0.</p>