EasyLanguage Object Reference

ComboBox Class

Displays a combobox that displays a drop-down list of items.

Namespace: elsystem.windows.forms

[ Expand All ]
Properties
  Name Type Description
Public property Count int Gets the number of items in the combobox list.
Public property DropDownHeight int Gets or sets the height of the combobox.
Public property DropDownStyle enum Gets or sets the style of the combobox. See ComboBoxStyle for a list of possible values.
Public property DropDownWidth int Gets or sets the width of the combobox.
Public property FlatStyle enum Gets or sets the flat style appearance of the combobox.  See FlatStyle for a list of possible values.
Public property SelectedIndex int Gets or sets the index of the selected combobox item.
Public property SelectedText string Gets or sets the text that is selected in the editable portion of a combobox.
Public property Sorted bool Sets or gets a value indicating if combobox items are sorted.

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

Methods
  Name Description
Public property AddItem(string) Adds a new combobox item using the provided text string.
Public property Clear Clears the contents from the combobox.
Public property Create() Initializes a new instance of a combobox.  
Public property Create(text,width,height) Initializes a new instance of a combobox.  Parameters include the default Text to appear in the combo box followed the Width and Height of the control.
Public property FindString(string) Finds the index of the first item in the combo box that starts with the specified string. The search is not case sensitive.
Public property FindStringExact(string) Finds the index of the first item in the comb box that exactly matches the specified string. The search is case sensitive.
Public property RemoveItem(index) Removes an item from the combo box at the index position.
Events
  Name Description
Public event

SelectedIndexChanged

Occurs when a combobox item is selected or changed. See EventArgs for the properties returned by the handler's args parameter.

Inheritance Hierarchy

elsystem.Object

  elsystem.DotNetObject

    elsystem.ELComponent

      elsystem.ELWFComponent

        elsystem.windows.forms.Control

          elsystem.windows.forms.ComboBox