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
Post a Comment