Get int value from Registry : Registry Read « Windows « C# / CSharp Tutorial






using System;
using Microsoft.Win32;

class MainClass
{
    public static void Main(String[] args)
    {
        int Count = (Int32)Registry.GetValue(
                @"HKEY_CURRENT_USER\Software\CompanyName\SoftwareName",
                "Count", 0); // 0 is the default value

    }
}








29.1.Registry Read
29.1.1.Get int value from Registry
29.1.2.Get Registry values with default
29.1.3.Loop through all subkeys contained in the current key
29.1.4.Loop through the values inside a key and display
29.1.5.Registry Tree
29.1.6.Registry Tree With Class