Set String value to the Registry : Registry Save : Windows C# Examples


C# Examples » Windows » Registry Save »

 

Set String value to the Registry









    
using  System;
using  Microsoft.Win32;

class  MainClass
{
        public  static  void  Main(String[]  args)
        {
                Registry.SetValue(
                        @"HKEY_CURRENT_USER\Software\CompanyName\SoftwareName",
                        "User",  Environment.UserName,  RegistryValueKind.String);

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Windows
» Registry Save