Imports Microsoft.Win32
...
Dim rkey As RegistryKey = Registry.LocalMachine.OpenSubKey("YourKeyOfInterest")
If Not rkey Is Nothing Then
-key exists...
Else
-key does not exist...
End If
You can set Registry.LocalMachine to other values (like Registry.CurrentUser) as needed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.