Selected Property
Description
Gets a collection containing the currently selected items in the list box control.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Selected( _
ByVal [Index](#) As Long _
) As Boolean
Parameters
- Index: The index number of the item in the control.
Remarks
This property is particularly useful when users can make multiple selections. You can quickly check which items in a list are selected. You can also use this property to select or deselect items in a list from code.
For a multiple-selection list box, this property returns a collection containing all items that are selected in the list box. For a single-selection list box, this property returns a collection containing a single element containing the only selected item in the list box.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.