ListView::HotTracking Property

 

Gets or sets a value indicating whether the text of an item or subitem has the appearance of a hyperlink when the mouse pointer passes over it.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property bool HotTracking {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the item text has the appearance of a hyperlink when the mouse passes over it; otherwise, false. The default is false.

Enabling hot tracking willcause the Activation property to be set to OneClick andtheHoverSelection property to be set to true. In addition, run-time label editing is not allowed when hot tracking is enabled.

The following code example demonstrates a ListView with hot tracking enabled. To run this example, paste the following code into a Windows Form and call the InitializeHotTrackingListView method from the form's constructor or Load event handler.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: