System.Windows.Forms.ToolStripComboBox.SelectedItem Property

Gets or sets currently selected item in the System.Windows.Forms.ToolStripComboBox.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.Bindable(true)]
public object SelectedItem { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When you set the ToolStripComboBox.SelectedItem property to an object, the System.Windows.Forms.ToolStripComboBox attempts to make that object the currently selected one in the list. If the object is found in the list, it is displayed in the edit portion of the System.Windows.Forms.ToolStripComboBox and the ToolStripComboBox.SelectedIndex property is set to the corresponding index. If the object does not exist in the list, the ToolStripComboBox.SelectedIndex property is left at its current value.

Requirements

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