La classe System.Windows.Forms.SystemInformation

Esplorando il Namespace System.Windows.Forms mi sono imbattuto nella classe System.Windows.Forms.SystemInformation che consente di ricavare tramite le sue proprietà Shared moltissime informazioni legate all’interfaccia utente e al sistema.

Ecco alcuni esempi:
        System.Windows.Forms.SystemInformation.BootMode
        System.Windows.Forms.SystemInformation.MouseButtons
        System.Windows.Forms.SystemInformation.MousePresent
        System.Windows.Forms.SystemInformation.MouseWheelPresent
        System.Windows.Forms.SystemInformation.Network
        System.Windows.Forms.SystemInformation.MonitorCount
        System.Windows.Forms.SystemInformation.PrimaryMonitorSize

        System.Windows.Forms.SystemInformation.BorderSize
        System.Windows.Forms.SystemInformation.CaptionHeight
        System.Windows.Forms.SystemInformation.HorizontalScrollBarHeight
        System.Windows.Forms.SystemInformation.VerticalScrollBarWidth