Question : Read data from registry key not working

I am trying to read data from a registry key and cannot get it to return the string I am after.

I almost have copied to code verbatim from the documentation but it's still not working.

Any ideas on why this is not working?
 
this is the data I am after (PathTest)
311253
 
1:
2:
3:
4:
5:
Dim up As Object

up = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\PH Resizer\", "PathTest", Nothing)

MsgBox("The value is " & CStr(up))

Answer : Read data from registry key not working

Oh, yes you are right, being x64 changes everything.
you must include Wow6432Node or else it iwll not read it. My previous code will look like:

Dim pRegKey As RegistryKey = Registry.LocalMachine
pRegKey = pRegKey.OpenSubKey("SOFTWARE\\Wow6432Node\\PH Resizer")
Dim val As Object = pRegKey.GetValue("PathTest")
Console.WriteLine("Your value  is:" + val)

Check:
http://social.msdn.microsoft.com/Forums/en/vsdebug/thread/1274ff87-5744-4598-89fa-c221d2a2fa5b
Random Solutions  
 
programming4us programming4us