ListBox.SelectedIndex

ListBox.SelectedIndex property

Gets or sets the index number of the currently selected item in a list box or combo box. Zero-based.

public int SelectedIndex { get; set; }

Remarks

-1 presents no item is selected.

See Also