0

How to Read DWORD from registry in VB.Net I tired below 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))

But it always returns 0.

Jobins John
  • 1,265
  • 23
  • 45
Chithra G
  • 1
  • 1

0 Answers0