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


C# Examples » Windows » Registry Save »

 

Set DateTime 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",
                        "DateTimeValue",  DateTime.Now.ToString(),  RegistryValueKind.String);

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Windows
» Registry Save