System.Windows.Forms.ToolStripComboBox.SelectedIndex Property

Gets or sets the index specifying the currently selected item.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public int SelectedIndex { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property indicates the zero-based index of the currently selected item in the combo box list. Setting a new index raises the ToolStripComboBox.SelectedIndexChanged event.

Note   To deselect the currently selected item, set the ToolStripComboBox.SelectedIndex to -1.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0