This documentation is archived and is not being maintained.

ListView.HoverSelection Property

Gets or sets a value indicating whether an item is automatically selected when the mouse pointer remains over the item for a few seconds.

[Visual Basic]
Public Property HoverSelection As Boolean
[C#]
public bool HoverSelection {get; set;}
[C++]
public: __property bool get_HoverSelection();
public: __property void set_HoverSelection(bool);
[JScript]
public function get HoverSelection() : Boolean;
public function set HoverSelection(Boolean);

Property Value

true if an item is automatically selected when the mouse pointer hovers over it; otherwise, false. The default is false.

Remarks

When this property is set to true, the user can point to an item in the ListView control to select the item. Multiple items can be selected (when the MultiSelect property is set to true) by holding down the CTRL key while pointing to each item. You can use this feature to provide an easier method for the user of your application to select items in the ListView control.

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

Show: