ListView::Activation Property
Gets or sets the type of action the user must take to activate an item.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property ItemActivation Activation { ItemActivation get(); void set(ItemActivation value); }
Property Value
Type: System.Windows.Forms::ItemActivationOne of the ItemActivation values. The default is Standard.
| Exception | Condition |
|---|---|
| InvalidEnumArgumentException | The value specified is not one of the ItemActivation members. |
The Activation property allows you to specify how the user will activate an item in the ListView control. Activating an item in a ListView differs from just selecting an item. When an item is activated, an action is typically performed in an event handler for the 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 Activation property is set to OneClick, clicking the item one time activates it. Setting the Activation property to TwoClick differs from the standard double-click because the two clicks can have any duration between them.
Available since 1.1
