c# - Registry.CurrentUser.OpenSubKey -


ok, having particularly bad day , can't seem figure out why line of code not returning results should be.

registrykey rksubkey = registry.currentuser.opensubkey(@"\software\<<path key>>", false); 

the value written registry form 2 text boxes, writes should , there value in registry , cannot life of me see why rksubkey returning null value.

i read on msdn forums related 64 bit software accessing 32 bit registry .. in app settings 32 bit preferred.

any appreciated.

the problem in leading backslash, delete :)

registrykey rksubkey = registry.currentuser.opensubkey(@"software\<<path key>>", false); 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -