ImageList::Handle Property

 

Gets the handle of the image list object.

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

public:
[BrowsableAttribute(false)]
property IntPtr Handle {
	IntPtr get();
}

Property Value

Type: System::IntPtr

The handle for the image list. The default is null.

Exception Condition
InvalidOperationException

Creating the handle for the ImageList failed.

This corresponds to a Win32 HIMAGELIST handle. The handle is not created until you need to use it. Getting the handle causes it to be created.

.NET Framework
Available since 1.1
Return to top
Show: