This documentation is archived and is not being maintained.

ListView.ItemActivate Event

Occurs when an item is activated.

[Visual Basic]
Public Event ItemActivate As EventHandler
[C#]
public event EventHandler ItemActivate;
[C++]
public: __event EventHandler* ItemActivate;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type EventArgs.

Remarks

The ItemActivate event occurs when the user activates one or more items in the ListView control. The user can activate an item with either a single-click or double-click, depending on the value of the Activation property, or with the keyboard. From within the event handler for the ItemActivate event, you can reference the SelectedItems or SelectedIndices properties to access the collection of items selected in the ListView to determine which items are being activated.

For more information about handling events, see Consuming Events.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ListView Class | ListView Members | System.Windows.Forms Namespace | OnItemActivate | EventHandler | Activation | SelectedItems | SelectedIndices

Show: