ComboBox Class
Displays a combobox that contains a drop-down list of items.
Namespace: elsystem.windows.forms
Properties
Additional
properties, methods, and events are described in the classes listed
under Inheritance Hierarchy (see below).
Name | Type | Description | |
![]() |
Count | int | Gets the number of items in the combobox list. |
![]() |
DropDownHeight | int | Gets or sets the height of the combobox. |
![]() |
DropDownStyle | enum | Gets or sets the style of the combobox. See ComboBoxStyle for a list of possible values. |
![]() |
DropDownWidth | int | Gets or sets the width of the combobox. |
![]() |
FlatStyle | enum | Gets or sets the flat style appearance of the combobox. See FlatStyle for a list of possible values. |
![]() |
Item [index ] | string | Gets or sets the item at the specified index. |
![]() |
SelectedIndex | int | Gets or sets the index of the selected combobox item. |
![]() |
SelectedItem | object | Gets the selected item from the ComboBox list. |
![]() |
SelectedText | string | Gets or sets the text that is selected in the editable portion of a combobox. |
![]() |
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 | |
![]() |
AddItem(string) | Adds a new combobox item using the provided text string. |
![]() |
Clear | Clears the contents from the combobox. |
![]() |
Create | Initializes a new instance of a combobox. |
![]() |
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. |
![]() |
FindStringvalue) | Finds the first item in the combo box that starts with the specified string value. The search is not case sensitive. |
![]() |
FindString(value,index) | Finds the first item in the combo box that starts with the specified string value starting after the specified index. The search is not case sensitive. |
![]() |
FindStringExact(value) | Finds the first item in the comb box that exactly matches the specified string value. The search is case sensitive. |
![]() |
GetItem(index) | Gets the item at the specified index position. |
![]() |
RemoveItem(index) | Removes an item from the combo box at the index position. |
![]() |
SetItem(index, value) | Sets the item at the specified index position to the specified string value. |
Events
Name | Description | |
![]() |
DropDown |
Occurs when the drop down portion of the combobox is shown. See EventArgs for the properties returned the handler's args parameter. |
![]() |
KeyDown |
Occurs when a combobox is selected and a key on the keyboard is pressed down. See KeyEventArgs for the properties returned by the handler's args parameter. |
![]() |
KeyPress |
Occurs when a combobox is selected and a key on the keyboard is pressed. See KeyEventArgs for the properties returned by the handler's args parameter. |
![]() |
KeyUp |
Occurs when a combobox is selected and a key on the keyboard is released. See KeyEventArgs for the properties returned by the handler's args parameter. |
![]() |
SelectedIndexChanged |
Occurs when a combobox item is selected or changed. See EventArgs for the properties returned by the handler's args parameter. |
![]() |
TextChanged |
Occurs when the value of the Text property changes. See EventArgs for the properties returned by the handler's args parameter. |