If you look at the RegistryKey class documentation there are samples in VB, C# and C++ that show how to open a key and read a value. The documentation for RegistryKey.SetValue() has a sample that shows how to, well, set a value.
What problems are you having? -----Original Message----- From: Rory Becker [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 4:28 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Writing to, and reading from, the Registry Can anyone provide a short example of how to write data to and read data from the registry using perhaps the registry object? As this seemingly simple task is eluding me. Cheers Rory You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.