To read a value from a registry key

09/05/2012, 09:01

accessman

Use the GetValue method, specifying the path and name) to read a value from registry key. The following example reads the value Name from
HKEY_CURRENT_USER\Software\MyApp and displays it in a message box.
Kod:
Dim readValue As String
readValue = My.Computer.Registry.GetValue _
("HKEY_CURRENT_USER\Software\MyApp", "Name", Nothing)
MsgBox("The value is " & readValue)