Registry read

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top