System.Windows.Forms.ListView.ItemCheck Event

Occurs when the check state of an item changes.

Syntax

public event ItemCheckEventHandler ItemCheck

Remarks

The ListView.CheckBoxes property must be set to true in order for check boxes to be displayed next to each item in the System.Windows.Forms.ListView control. The ListView.ItemCheck event occurs when the check state of an item changes or when the ListView.CheckBoxes property is set to true. You can create an event handler for the ListView.ItemCheck event to perform tasks such as changing the state of an item's icon or another application-specific task each time an item is checked in the System.Windows.Forms.ListView control.

Note:

If the window handle has not been created when the ListView.ItemCheck event is raised, the event will be delayed. Once the window handle is created (when the form is shown), any delayed ListView.ItemCheck events will be raised. For more information, see Control.HandleCreated.

For more information about handling events, see Consuming Events.

Requirements

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