FromHandle Method
Collapse the table of content
Expand the table of content

Icon.FromHandle Method

Creates a GDI+ Icon object from the specified Windows handle to an icon (HICON).

[Visual Basic]
Public Shared Function FromHandle( _
   ByVal handle As IntPtr _
) As Icon
[C#]
public static Icon FromHandle(
 IntPtr handle
);
[C++]
public: static Icon* FromHandle(
 IntPtr handle
);
[JScript]
public static function FromHandle(
   handle : IntPtr
) : Icon;

Parameters

handle
A Windows handle to an icon.

Return Value

The Icon object this method creates.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Icon Class | Icon Members | System.Drawing Namespace

Show:
© 2016 Microsoft