This documentation is archived and is not being maintained.

VisualStyleInformation.IsEnabledByUser Property

Note: This property is new in the .NET Framework version 2.0.

Gets a value indicating whether the user has enabled visual styles in the operating system.

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public static bool IsEnabledByUser { get; }
/** @property */
public static boolean get_IsEnabledByUser ()

public static function get IsEnabledByUser () : boolean

Property Value

true if the user has enabled visual styles in an operating system that supports them; otherwise, false.

Users can enable visual styles in the Appearance tab of the Display option in Control Panel. This property checks the value of the IsSupportedByOS property internally.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: