Gets or sets the item in the control that currently has focus.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
'Declaration <BrowsableAttribute(False)> _ Public Property FocusedItem As ListViewItem 'Usage Dim instance As ListView Dim value As ListViewItem value = instance.FocusedItem instance.FocusedItem = value
The property returns the ListViewItem that represents the item currently displaying the focus rectangle for the ListView control. Because a ListView control has no directly editable areas other than the items it displays, when the ListView control has focus, an item within the ListView displays the focus reticle around its item text. Typically, the last selected item in the ListView control is the item with focus. Although an item may be the one displaying the focus reticle, it may not actually be a selected item in the ListView. Use the SelectedItems or SelectedIndices properties to obtain the selected items in the ListView control, the property is not necessarily selected. You can use the property to determine which item was last clicked in the ListView control, regardless of selection state.
Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows CE Platform Note: For the .NET Compact Framework, this property is read-only.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.