LoadIcon (user32)
Last changed: -88.64.116.184

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern IntPtr LoadIcon(IntPtr hInstance, string lpIconName);

For loading icon-resource identified as integer ID

[DllImport("user32.dll")]
static extern IntPtr LoadIcon(IntPtr hInstance, IntPtr lpIconName);

VB Signature:

<DllImport("user32.dll")> _
Private Shared Function LoadIcon(ByVal hInstance As IntPtr, ByVal lpIconName As String) As IntPtr
End Function

' For loading icon-resource identified as integer ID
<DllImport("user32.dll")> _
Private Shared Function LoadIcon(ByVal hInstance As IntPtr, ByVal lpIconName As IntPtr) As IntPtr
End Function

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

To load system icons, provide IntPtr.Zero for hInstance, and use one of the values of SystemIcons for lpIconName

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
LoadIcon on MSDN