Skip to content

Read registry?

John

Asked May 3, 2009, 10:29 AM EDTSolved
Share
LinkedInX
I use for reading registry following:
RegistryKey rk1 = Registry.CurrentUser.CreateSubKey("Software\\"Microsoft\Notepad");
string rk_read = rk1.GetValue("IfFaceName");
Console.WriteLine("The string: {0}",rk_read);
But in console i see only
The string:
and nothing else... String IfFaceName is in the registry on the location in code.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.