System.Windows.Forms.VisualStyles.VisualStyleRenderer.Handle Property

Gets a unique identifier for the current class of visual style elements.

Syntax

public IntPtr Handle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property is used internally by the System.Windows.Forms.VisualStyles.VisualStyleRenderer methods. If the class of elements specified by the VisualStyleRenderer.Class property is not defined by the current visual style, then this property returns IntPtr.Zero.

This property value is invalidated when the visual style of the operating system changes, or when the user disables visual styles. If you access this property directly, your code should query this property again to get a new handle when the Microsoft.Win32.SystemEvents.UserPreferenceChanged event is raised with the Microsoft.Win32.UserPreferenceChangedEventArgs.Category property value of Microsoft.Win32.UserPreferenceCategory.VisualStyle.

Requirements

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0