LastHResult Property
Collapse the table of content
Expand the table of content

VisualStyleRenderer.LastHResult Property

 

Gets the last error code returned by the native visual styles (UxTheme) API methods encapsulated by the VisualStyleRenderer class.

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

public int LastHResult { get; }

Property Value

Type: System.Int32

A value specifying the last error code returned by the native visual styles API methods that this class encapsulates.

This property gets the HRESULT value that was returned by the last native visual styles API method called by a member of the VisualStyleRenderer class. For more information about the native visual styles API, see "Using Windows XP Visual Styles" in the Platform SDK portion of the MSDN Library at http://msdn.microsoft.com/library.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft