title: Check if a key exists in the Windows Registry with VB.NET
body: <p>In VB.NET I can create a key in the Windows Registry like this:</p>
  
  <pre><code>My.Computer.Registry.CurrentUser.CreateSubKey("TestKey")
  </code></pre>
  
  <p>And I can check if a <strong>value</strong> exists within a key like this:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>But how can I check if a <strong>key</strong> with a specific name exists in the Registry?</p>