ListViewArray.ItemActivate Event

Definition

Occurs when an item is activated.

public:
 event EventHandler ^ ItemActivate;
public event EventHandler ItemActivate;
member this.ItemActivate : EventHandler 
Public Custom Event ItemActivate As EventHandler 
Public Event ItemActivate As EventHandler 

Event Type

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 how to handle events, see Handling and Raising Events.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to