using System;
using System.Resources;
using Microsoft.Win32;
using System.Diagnostics;
class Test
{
static void Main(string[] args)
{
// Save user prefs to reg.
RegistryKey regKey = Registry.CurrentUser;
regKey = regKey.CreateSubKey("Software\\Intertech\\YourKeyRes");
regKey.SetValue("CurrSize", "29");
regKey.SetValue("CurrColor", "Red");
Console.WriteLine("Settings saved in registry");
}
}