In VB.NET, I can create a key in the Windows registry, for example:
My.Computer.Registry.CurrentUser.CreateSubKey("TestKey")
And I can check if a value exists inside such a key:
If My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\MyKey", _
"TestValue", Nothing) Is Nothing Then
MsgBox("Value does not exist.")
Else
MsgBox("Value exist.")
End If
But how can I check if a key exists in the registry with a specific name?
source
share