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
public static Icon FromHandle(
 IntPtr handle
public: static Icon* FromHandle(
 IntPtr handle
public static function FromHandle(
   handle : IntPtr
) : Icon;


A Windows handle to an icon.

Return Value

The Icon object this method creates.


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

© 2016 Microsoft