System.Windows.Forms.ListView.Activation Property

Gets or sets the type of action the user must take to activate an item.

Syntax

[System.ComponentModel.DefaultValue(System.Windows.Forms.ItemActivation.Standard)]
public ItemActivation Activation { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ListView.Activation property allows you to specify how the user will activate an item in the System.Windows.Forms.ListView control. Activating an item in a System.Windows.Forms.ListView differs from just selecting an item. When an item is activated, an action is typically performed in an event handler for the ListView.ItemActivate event. For example, when an item is activated you might open a file or display a dialog box that allows the item to be edited. Typically, an item is double-clicked by the user to activate it. If the ListView.Activation property is set to ItemActivation.OneClick, clicking the item one time activates it. Setting the ListView.Activation property to ItemActivation.TwoClick differs from the standard double-click because the two clicks can have any duration between them.

Note:

If the ListView.Activation property is set to ItemActivation.OneClick or ItemActivation.TwoClick, label editing will not be allowed regardless of the value of the ListView.LabelEdit property.

Requirements

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