System.Windows.Forms.ImageList.RecreateHandle Event

Occurs when the ImageList.Handle is recreated.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ComponentModel.Browsable(false)]
public event EventHandler RecreateHandle

Remarks

You can use this event to do special processing when the ImageList.Handle is recreated by actions such as changing the ImageList.ColorDepth or ImageList.ImageSize. Special processing may be required because setting the ImageList.ColorDepth or the ImageList.ImageSize property after setting the ImageList.Images property causes the handle to be recreated and the images to be discarded.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0