Registry read

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to read a key in the registry but I get nothing in response and I
copied the code from the help files.
Here is the code:
Dim readValue As Object
readValue =
My.Computer.Registry.GetValue("HKEY_CURRENT_USER\MyTestKey", "Name", Nothing)
MsgBox("The value is " & CStr(readValue))
Also, how would you read the other lines in the key as there is no place for
an index?
Any help would be appreciated.
 
Back
Top