ToolStripComboBox::SelectedText Property
.NET Framework (current version)
Gets or sets the text that is selected in the editable portion of a ToolStripComboBox.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property String^ SelectedText { String^ get(); void set(String^ value); }
Property Value
Type: System::String^A string that represents the currently selected text in the combo box. If DropDownStyle is set to DropDownList, the return value is an empty string ("").
You can assign text to this property to change the text currently selected in the combo box. If no text is currently selected in the combo box, this property returns a zero-length string.
.NET Framework
Available since 2.0
Available since 2.0
Show: