Selects or clears the selection for the specified item in a System.Windows.Forms.ListBox.
- index
- The zero-based index of the item in a System.Windows.Forms.ListBox to select or clear the selection for.
- value
- true to select the specified item; otherwise, false.
You can use this property to set the selection of items in a multiple-selection System.Windows.Forms.ListBox. To select an item in a single-selection System.Windows.Forms.ListBox, use the ListBox.SelectedIndex property.