Provides methods to manage a collection of System.Drawing.Image objects. This class cannot be inherited.
See Also: ImageList Members
System.Windows.Forms.ImageList is typically used by other controls, such as the System.Windows.Forms.ListView, System.Windows.Forms.TreeView, or System.Windows.Forms.ToolBar. You can add bitmaps or icons to the System.Windows.Forms.ImageList, and the other controls are able to use the images as they require.
System.Windows.Forms.ImageList uses a handle to manage the list of images. The ImageList.Handle is not created until certain operations, such as getting the ImageList.Handle or calling ImageList.Draw(System.Drawing.Graphics, System.Drawing.Point, int), are performed on the image list. Performing other operations, such as setting the ImageList.ColorDepth or ImageList.ImageSize will cause the ImageList.Handle to be recreated. Therefore, you should perform these operations before you add images to the System.Windows.Forms.ImageList. In addition, when you work with forms that will be localized, you should always add an System.Windows.Forms.ImageList and images when the Language property of a form is set to Default. Changing the form's language before you add images will corrupt the application resource files.