"just i need the code or how can the code read register keys and values from windows register"
If you mean the Windows Registry, then assuming this is a legacy application (because the Registry is no longer recommended for general storage) Have a look at the
RegistryKey class[
^] - the link to MSDN includes an example of manipulating the registry from C#