Basic Registry Access Example
RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\Company\Priduct\Version"); if (key!=null) { string ini = key.GetValue("localinifile","").ToString(); key.Close(); }
DZone Snippets > codeguy > registry
12104 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Sean Harvell sean.harvell.ws
RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\Company\Priduct\Version"); if (key!=null) { string ini = key.GetValue("localinifile","").ToString(); key.Close(); }